ComponentEventArgs Class
.NET Framework 3.0
Provides data for the ComponentAdded, ComponentAdding, ComponentRemoved, and ComponentRemoving events.
Namespace: System.ComponentModel.Design
Assembly: System (in system.dll)
Assembly: System (in system.dll)
'Declaration <ComVisibleAttribute(True)> _ Public Class ComponentEventArgs Inherits EventArgs 'Usage Dim instance As ComponentEventArgs
/** @attribute ComVisibleAttribute(true) */ public class ComponentEventArgs extends EventArgs
ComVisibleAttribute(true) public class ComponentEventArgs extends EventArgs
Not applicable.
The following example demonstrates creating a ComponentEventArgs.
' This example method creates a ComponentEventArgs using the specified argument. ' Typically, this type of event args is created by a design mode subsystem. Public Function CreateComponentEventArgs(ByVal component As IComponent) As ComponentEventArgs Dim args As New ComponentEventArgs(component) ' The component that is related to the event: args.Component Return args End Function
// This example method creates a ComponentEventArgs using
// the specified argument.
// Typically, this type of event args is created by a design mode subsystem.
public ComponentEventArgs CreateComponentEventArgs(IComponent component)
{
ComponentEventArgs args = new ComponentEventArgs(component);
// The component that is related to the event: args.Component
return args;
} //CreateComponentEventArgs
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: