Bewerken

Delen via


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

ToolboxComponentsCreatedEventArgs(IComponent[])

Initializes a new instance of the ToolboxComponentsCreatedEventArgs class.

Properties

Components

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

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also