System.Drawing.Design.IToolboxService.AddCreator Method

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

Syntax

public void AddCreator (ToolboxItemCreatorCallback creator, string format)

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.

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.

Requirements

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