ComponentRenameEventArgs Class
.NET Framework 3.0
Provides data for the ComponentRename event.
Namespace: System.ComponentModel.Design
Assembly: System (in system.dll)
Assembly: System (in system.dll)
'Declaration <ComVisibleAttribute(True)> _ Public Class ComponentRenameEventArgs Inherits EventArgs 'Usage Dim instance As ComponentRenameEventArgs
/** @attribute ComVisibleAttribute(true) */ public class ComponentRenameEventArgs extends EventArgs
ComVisibleAttribute(true) public class ComponentRenameEventArgs extends EventArgs
Not applicable.
The following example demonstrates creating a ComponentRenameEventArgs.
' 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
// 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;
} //CreateComponentRenameEventArgs
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: