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

 

Adds a new toolbox item creator for a specified data format and designer host.

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

void AddCreator(
	ToolboxItemCreatorCallback^ creator,
	String^ format,
	IDesignerHost^ host
)

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.

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

The IDesignerHost that represents the designer host to associate with the creator.

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.

If the host parameter is set to null, the creator will be available to all designers. If a designer host is supplied, the creator will only be available to designers using the specified host.

.NET Framework
Available since 1.1
Return to top
Show: