Provides data for the ComponentRename event.
For a list of all members of this type, see ComponentRenameEventArgs Members.
System.Object
System.EventArgs
System.ComponentModel.Design.ComponentRenameEventArgs
[Visual Basic] <ComVisible(True)> Public Class ComponentRenameEventArgs Inherits EventArgs [C#] [ComVisible(true)] public class ComponentRenameEventArgs : EventArgs [C++] [ComVisible(true)] public __gc class ComponentRenameEventArgs : public EventArgs [JScript] public ComVisible(true) class ComponentRenameEventArgs extends EventArgs
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
A ComponentRenameEventArgs provides data about a ComponentRename event.
A ComponentRenameEventArgs object provides the following information:
[Visual Basic, C#, C++] The following example demonstrates creating a ComponentRenameEventArgs.
[Visual Basic] ' 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 [C#] // 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; } [C++] // 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 new ComponentRenameEventArgs(component, oldName, newName); }
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Namespace: System.ComponentModel.Design
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System (in System.dll)
ComponentRenameEventArgs Members | System.ComponentModel.Design Namespace | ComponentRename | ComponentRenameEventHandler