IToolboxService.AddCreator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a new toolbox item creator for a specified data format.
Overloads
AddCreator(ToolboxItemCreatorCallback, String) |
Adds a new toolbox item creator for a specified data format. |
AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost) |
Adds a new toolbox item creator for a specified data format and designer host. |
AddCreator(ToolboxItemCreatorCallback, String)
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
Adds a new toolbox item creator for a specified data format.
public:
void AddCreator(System::Drawing::Design::ToolboxItemCreatorCallback ^ creator, System::String ^ format);
public void AddCreator (System.Drawing.Design.ToolboxItemCreatorCallback creator, string format);
abstract member AddCreator : System.Drawing.Design.ToolboxItemCreatorCallback * string -> unit
Public Sub AddCreator (creator As ToolboxItemCreatorCallback, format As String)
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.
Remarks
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.
See also
Applies to
AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost)
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
Adds a new toolbox item creator for a specified data format and designer host.
public:
void AddCreator(System::Drawing::Design::ToolboxItemCreatorCallback ^ creator, System::String ^ format, System::ComponentModel::Design::IDesignerHost ^ host);
public void AddCreator (System.Drawing.Design.ToolboxItemCreatorCallback creator, string format, System.ComponentModel.Design.IDesignerHost host);
abstract member AddCreator : System.Drawing.Design.ToolboxItemCreatorCallback * string * System.ComponentModel.Design.IDesignerHost -> unit
Public Sub AddCreator (creator As ToolboxItemCreatorCallback, format As String, host As IDesignerHost)
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.
Remarks
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.