System.Drawing.Design.ToolboxItemCreatorCallback Delegate

Provides a callback mechanism that can create a System.Drawing.Design.ToolboxItem.


public delegate ToolboxItem ToolboxItemCreatorCallback (object serializedObject, string format)


Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.


Documentation for this section has not yet been entered.


You can implement a toolbox item creator method with a method signature matching the method signature of this delegate type that creates a toolbox item from any object of a particular clipboard data format placed on the toolbox. For example, you can design a toolbox item creator that creates a System.Windows.Forms.TextBox to store text pasted to the toolbox from the clipboard. You can use the IToolboxService.AddCreator(ToolboxItemCreatorCallback, string) method of the System.Drawing.Design.IToolboxService to add a System.Drawing.Design.ToolboxItemCreatorCallback event handler for a particular data type to the toolbox. The serializedObject parameter contains the data object.

When you create a System.Drawing.Design.ToolboxItemCreatorCallback delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see Events and Delegates.


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