Redigera

Dela via


ToolboxItem.CreateComponents Method

Definition

Creates the components that the toolbox item is configured to create.

Overloads

CreateComponents(IDesignerHost, IDictionary)

Creates the components that the toolbox item is configured to create, using the specified designer host and default values.

CreateComponents()

Creates the components that the toolbox item is configured to create.

CreateComponents(IDesignerHost)

Creates the components that the toolbox item is configured to create, using the specified designer host.

CreateComponents(IDesignerHost, IDictionary)

Source:
ToolboxItem.cs
Source:
ToolboxItem.cs
Source:
ToolboxItem.cs

Creates the components that the toolbox item is configured to create, using the specified designer host and default values.

public:
 cli::array <System::ComponentModel::IComponent ^> ^ CreateComponents(System::ComponentModel::Design::IDesignerHost ^ host, System::Collections::IDictionary ^ defaultValues);
public System.ComponentModel.IComponent[] CreateComponents (System.ComponentModel.Design.IDesignerHost host, System.Collections.IDictionary defaultValues);
public System.ComponentModel.IComponent[]? CreateComponents (System.ComponentModel.Design.IDesignerHost? host, System.Collections.IDictionary? defaultValues);
member this.CreateComponents : System.ComponentModel.Design.IDesignerHost * System.Collections.IDictionary -> System.ComponentModel.IComponent[]
Public Function CreateComponents (host As IDesignerHost, defaultValues As IDictionary) As IComponent()

Parameters

host
IDesignerHost

The IDesignerHost to use when creating the components.

defaultValues
IDictionary

A dictionary of property name/value pairs of default values with which to initialize the component.

Returns

An array of created IComponent objects.

Remarks

The CreateComponents method calls the CreateComponentsCore method to retrieve an array of type IComponent containing the components to create.

Applies to

CreateComponents()

Source:
ToolboxItem.cs
Source:
ToolboxItem.cs
Source:
ToolboxItem.cs

Creates the components that the toolbox item is configured to create.

public:
 cli::array <System::ComponentModel::IComponent ^> ^ CreateComponents();
public System.ComponentModel.IComponent[] CreateComponents ();
public System.ComponentModel.IComponent[]? CreateComponents ();
member this.CreateComponents : unit -> System.ComponentModel.IComponent[]
Public Function CreateComponents () As IComponent()

Returns

An array of created IComponent objects.

Remarks

The CreateComponents method calls the CreateComponentsCore method to retrieve an array of type IComponent containing the components to create.

Applies to

CreateComponents(IDesignerHost)

Source:
ToolboxItem.cs
Source:
ToolboxItem.cs
Source:
ToolboxItem.cs

Creates the components that the toolbox item is configured to create, using the specified designer host.

public:
 cli::array <System::ComponentModel::IComponent ^> ^ CreateComponents(System::ComponentModel::Design::IDesignerHost ^ host);
public System.ComponentModel.IComponent[] CreateComponents (System.ComponentModel.Design.IDesignerHost host);
public System.ComponentModel.IComponent[]? CreateComponents (System.ComponentModel.Design.IDesignerHost? host);
member this.CreateComponents : System.ComponentModel.Design.IDesignerHost -> System.ComponentModel.IComponent[]
Public Function CreateComponents (host As IDesignerHost) As IComponent()

Parameters

host
IDesignerHost

The IDesignerHost to use when creating the components.

Returns

An array of created IComponent objects.

Remarks

The CreateComponents method calls the CreateComponentsCore method to retrieve an array of type IComponent containing the components to create.

See also

Applies to