ComponentRenameEventArgs Klasse
Definition
Stellt Daten für das ComponentRename-Ereignis bereit.Provides data for the ComponentRename event.
public ref class ComponentRenameEventArgs : EventArgs
public class ComponentRenameEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class ComponentRenameEventArgs : EventArgs
type ComponentRenameEventArgs = class
inherit EventArgs
[<System.Runtime.InteropServices.ComVisible(true)>]
type ComponentRenameEventArgs = class
inherit EventArgs
Public Class ComponentRenameEventArgs
Inherits EventArgs
- Vererbung
- Attribute
Beispiele
Im folgenden Beispiel wird das Erstellen eines veranschaulicht ComponentRenameEventArgs .The following example demonstrates creating a ComponentRenameEventArgs.
public:
// This example method creates a ComponentRenameEventArgs using the specified arguments.
// Typically, this type of event args is created by a design mode subsystem.
ComponentRenameEventArgs^ CreateComponentRenameEventArgs( Object^ component, String^ oldName, String^ newName )
{
// The component that was renamed: args.Component
// The previous name of the component: args.OldName
// The new name of the component: args.NewName
return gcnew ComponentRenameEventArgs( component, oldName, newName );
}
// This example method creates a ComponentRenameEventArgs using the specified arguments.
// Typically, this type of event args is created by a design mode subsystem.
public ComponentRenameEventArgs CreateComponentRenameEventArgs(object component, string oldName, string newName)
{
ComponentRenameEventArgs args = new ComponentRenameEventArgs(component, oldName, newName);
// The component that was renamed: args.Component
// The previous name of the component: args.OldName
// The new name of the component: args.NewName
return args;
}
' This example method creates a ComponentRenameEventArgs using the specified arguments.
' Typically, this type of event args is created by a design mode subsystem.
Public Function CreateComponentRenameEventArgs(ByVal component As Object, ByVal oldName As String, ByVal newName As String) As ComponentRenameEventArgs
Dim args As New ComponentRenameEventArgs(component, oldName, newName)
' The component that was renamed: args.Component
' The previous name of the component: args.OldName
' The new name of the component: args.NewName
Return args
End Function
Hinweise
ComponentRenameEventArgsStellt Daten zu einem- ComponentRename Ereignis bereit.A ComponentRenameEventArgs provides data about a ComponentRename event.
Ein- ComponentRenameEventArgs Objekt stellt die folgenden Informationen bereit:A ComponentRenameEventArgs object provides the following information:
Eine Component Eigenschaft, die auf die umbenannte Komponente verweist.A Component property that references the component being renamed.
Eine- OldName Eigenschaft, die den alten Namen der Komponente angibt.An OldName property that indicates the old name of the component.
Eine- NewName Eigenschaft, die den neuen Namen der Komponente angibt.A NewName property that indicates the new name of the component.
Konstruktoren
ComponentRenameEventArgs(Object, String, String) |
Initialisiert eine neue Instanz der ComponentRenameEventArgs-Klasse.Initializes a new instance of the ComponentRenameEventArgs class. |
Eigenschaften
Component |
Ruft die Komponente ab, die umbenannt wird.Gets the component that is being renamed. |
NewName |
Ruft den Namen der Komponente nach dem Umbenennungsereignis ab.Gets the name of the component after the rename event. |
OldName |
Ruft den Namen der Komponente vor dem Umbenennungsereignis ab.Gets the name of the component before the rename event. |
Methoden
Equals(Object) |
Bestimmt, ob das angegebene Objekt mit dem aktuellen Objekt identisch ist.Determines whether the specified object is equal to the current object. (Geerbt von Object) |
GetHashCode() |
Fungiert als Standardhashfunktion.Serves as the default hash function. (Geerbt von Object) |
GetType() |
Ruft den Type der aktuellen Instanz ab.Gets the Type of the current instance. (Geerbt von Object) |
MemberwiseClone() |
Erstellt eine flache Kopie des aktuellen Object.Creates a shallow copy of the current Object. (Geerbt von Object) |
ToString() |
Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.Returns a string that represents the current object. (Geerbt von Object) |