System.Drawing.Design.ToolboxItem.CreateComponentsCore Method

Creates a component or an array of components when the toolbox item is invoked.

Syntax

protected virtual System.ComponentModel.IComponent[] CreateComponentsCore (System.ComponentModel.Design.IDesignerHost host)

Parameters

host
The System.ComponentModel.Design.IDesignerHost to host the toolbox item.

Returns

An array of created System.ComponentModel.IComponent objects.

Remarks

If host is not null, the ToolboxItem.CreateComponentsCore(System.ComponentModel.Design.IDesignerHost) method adds the new components to the designer.

Requirements

Namespace: System.Drawing.Design
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0