Editar

ToolboxComponentsCreatedEventArgs Class

Definition

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
ToolboxComponentsCreatedEventArgs

Examples

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

Remarks

The ComponentsCreated event is raised when components are added to the toolbox. ToolboxComponentsCreatedEventArgs provides data indicating which component or components are being added.

Constructors

Name Description
ToolboxComponentsCreatedEventArgs(IComponent[])

Initializes a new instance of the ToolboxComponentsCreatedEventArgs class.

Properties

Name Description
Components

Gets or sets an array containing the components to add to the toolbox.

Applies to

See also