System.Drawing.Design.IToolboxService.AddCreator Method

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

Syntax

public void AddCreator (ToolboxItemCreatorCallback creator, string format, System.ComponentModel.Design.IDesignerHost host)

Parameters

creator
A System.Drawing.Design.ToolboxItemCreatorCallback that can create a component when the toolbox item is invoked.
format
The data format that the creator handles.
host
The System.ComponentModel.Design.IDesignerHost that represents the designer host to associate with the creator.

Remarks

A toolbox item creator can convert data of a particular data format that has been pasted or dropped on the toolbox into a System.Drawing.Design.ToolboxItem. If a creator handles more than one format, call IToolboxService.AddCreator(ToolboxItemCreatorCallback, string) 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.

Requirements

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