System.Drawing.Design.ToolboxItem.CreateComponentsCore Method

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

Syntax

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

Parameters

host
The designer host to use when creating components.
defaultValues
A dictionary of property name/value pairs of default values with which to initialize the component.

Returns

An array of created System.ComponentModel.IComponent objects.

Remarks

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

Requirements

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