ToolboxComponentsCreatedEventArgs Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data for the ComponentsCreated event that occurs when components are added to the toolbox.
public ref class ToolboxComponentsCreatedEventArgs : EventArgs
public class ToolboxComponentsCreatedEventArgs : EventArgs
type ToolboxComponentsCreatedEventArgs = class
inherit EventArgs
Public Class ToolboxComponentsCreatedEventArgs
Inherits EventArgs
- Inheritance
The following example method returns a ToolboxComponentsCreatedEventArgs that indicates the components that have been created:
ToolboxComponentsCreatedEventArgs^ CreateToolboxComponentsCreatedEventArgs( array<System::ComponentModel::IComponent^>^components )
{
ToolboxComponentsCreatedEventArgs^ e = gcnew ToolboxComponentsCreatedEventArgs( components );
// The components that were just created e.Components
return e;
}
public ToolboxComponentsCreatedEventArgs CreateToolboxComponentsCreatedEventArgs(System.ComponentModel.IComponent[] components)
{
ToolboxComponentsCreatedEventArgs e = new ToolboxComponentsCreatedEventArgs(components);
// The components that were just created e.Components
return e;
}
Public Function CreateToolboxComponentsCreatedEventArgs(ByVal components() As System.ComponentModel.IComponent) As ToolboxComponentsCreatedEventArgs
Dim e As New ToolboxComponentsCreatedEventArgs(components)
' The components that were just created e.Components
Return e
End Function
The ComponentsCreated event is raised when components are added to the toolbox. ToolboxComponentsCreatedEventArgs provides data indicating which component or components are being added.
Toolbox |
Initializes a new instance of the ToolboxComponentsCreatedEventArgs class. |
Components |
Gets or sets an array containing the components to add to the toolbox. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: