IToolboxService::AddCreator Method (ToolboxItemCreatorCallback^, String^)

 

Adds a new toolbox item creator for a specified data format.

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

void AddCreator(
	ToolboxItemCreatorCallback^ creator,
	String^ format
)

Parameters

creator
Type: System.Drawing.Design::ToolboxItemCreatorCallback^

A ToolboxItemCreatorCallback that can create a component when the toolbox item is invoked.

format
Type: System::String^

The data format that the creator handles.

A toolbox item creator can convert data of a particular data format that has been pasted or dropped on the toolbox into a ToolboxItem. If a creator handles more than one format, call AddCreator more than once. Unexpected behavior may result if you add more than one creator for the same format.

.NET Framework
Available since 1.1
Return to top
Show: