ToolboxService.IToolboxService.AddCreator 方法

定义

为指定的数据格式添加新的工具箱项创建者。

重载

IToolboxService.AddCreator(ToolboxItemCreatorCallback, String)

有关此成员的说明,请参见 AddCreator(ToolboxItemCreatorCallback, String) 方法。

IToolboxService.AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost)

有关此成员的说明,请参见 AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost) 方法。

IToolboxService.AddCreator(ToolboxItemCreatorCallback, String)

有关此成员的说明,请参见 AddCreator(ToolboxItemCreatorCallback, String) 方法。

 virtual void System.Drawing.Design.IToolboxService.AddCreator(System::Drawing::Design::ToolboxItemCreatorCallback ^ creator, System::String ^ format) = System::Drawing::Design::IToolboxService::AddCreator;
void IToolboxService.AddCreator (System.Drawing.Design.ToolboxItemCreatorCallback creator, string format);
abstract member System.Drawing.Design.IToolboxService.AddCreator : System.Drawing.Design.ToolboxItemCreatorCallback * string -> unit
override this.System.Drawing.Design.IToolboxService.AddCreator : System.Drawing.Design.ToolboxItemCreatorCallback * string -> unit
Sub AddCreator (creator As ToolboxItemCreatorCallback, format As String) Implements IToolboxService.AddCreator

参数

creator
ToolboxItemCreatorCallback

ToolboxItemCreatorCallback,它可在调用工具箱项时创建组件。

format
String

创建者处理的数据格式。

实现

注解

此成员是显式接口成员的实现。 它只能在 ToolboxService 实例被强制转换为 IToolboxService 接口时使用。

适用于

IToolboxService.AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost)

有关此成员的说明,请参见 AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost) 方法。

 virtual void System.Drawing.Design.IToolboxService.AddCreator(System::Drawing::Design::ToolboxItemCreatorCallback ^ creator, System::String ^ format, System::ComponentModel::Design::IDesignerHost ^ host) = System::Drawing::Design::IToolboxService::AddCreator;
void IToolboxService.AddCreator (System.Drawing.Design.ToolboxItemCreatorCallback creator, string format, System.ComponentModel.Design.IDesignerHost host);
abstract member System.Drawing.Design.IToolboxService.AddCreator : System.Drawing.Design.ToolboxItemCreatorCallback * string * System.ComponentModel.Design.IDesignerHost -> unit
override this.System.Drawing.Design.IToolboxService.AddCreator : System.Drawing.Design.ToolboxItemCreatorCallback * string * System.ComponentModel.Design.IDesignerHost -> unit
Sub AddCreator (creator As ToolboxItemCreatorCallback, format As String, host As IDesignerHost) Implements IToolboxService.AddCreator

参数

creator
ToolboxItemCreatorCallback

ToolboxItemCreatorCallback,它可在调用工具箱项时创建组件。

format
String

创建者处理的数据格式。

host
IDesignerHost

IDesignerHost,表示与创建者相关联的设计器宿主。

实现

注解

此成员是显式接口成员的实现。 它只能在 ToolboxService 实例被强制转换为 IToolboxService 接口时使用。

适用于