ToolboxItem::CreateComponentsCore Method (IDesignerHost^)

 

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

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

protected:
virtual array<IComponent^>^ CreateComponentsCore(
	IDesignerHost^ host
)

Parameters

host
Type: System.ComponentModel.Design::IDesignerHost^

The IDesignerHost to host the toolbox item.

Return Value

Type: array<System.ComponentModel::IComponent^>^

An array of created IComponent objects.

If host is not null, the CreateComponentsCore method adds the new components to the designer.

Notes to Inheritors:

You can override the CreateComponentsCore method to return the component or components that a toolbox item creates.

.NET Framework
Available since 1.1
Return to top
Show: