ToolboxService.IToolboxService.AddCreator Method

Definition

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

Overloads

IToolboxService.AddCreator(ToolboxItemCreatorCallback, String)

For a description of this member, see the AddCreator(ToolboxItemCreatorCallback, String) method.

C#
void IToolboxService.AddCreator(System.Drawing.Design.ToolboxItemCreatorCallback creator, string format);

Parameters

creator
ToolboxItemCreatorCallback

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

format
String

The data format that the creator handles.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ToolboxService instance is cast to an IToolboxService interface.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

IToolboxService.AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost)

For a description of this member, see the AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost) method.

C#
void IToolboxService.AddCreator(System.Drawing.Design.ToolboxItemCreatorCallback creator, string format, System.ComponentModel.Design.IDesignerHost host);

Parameters

creator
ToolboxItemCreatorCallback

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

format
String

The data format that the creator handles.

host
IDesignerHost

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

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ToolboxService instance is cast to an IToolboxService interface.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1