Share via


IToolboxService.AddLinkedToolboxItem 方法

定义

将与项目链接的工具箱项添加到工具箱。

重载

AddLinkedToolboxItem(ToolboxItem, IDesignerHost)

将指定的与项目链接的工具箱项添加到工具箱。

AddLinkedToolboxItem(ToolboxItem, String, IDesignerHost)

将指定的与项目链接的工具箱项添加到指定类别的工具箱。

AddLinkedToolboxItem(ToolboxItem, IDesignerHost)

将指定的与项目链接的工具箱项添加到工具箱。

public:
 void AddLinkedToolboxItem(System::Drawing::Design::ToolboxItem ^ toolboxItem, System::ComponentModel::Design::IDesignerHost ^ host);
public void AddLinkedToolboxItem (System.Drawing.Design.ToolboxItem toolboxItem, System.ComponentModel.Design.IDesignerHost host);
abstract member AddLinkedToolboxItem : System.Drawing.Design.ToolboxItem * System.ComponentModel.Design.IDesignerHost -> unit
Public Sub AddLinkedToolboxItem (toolboxItem As ToolboxItem, host As IDesignerHost)

参数

toolboxItem
ToolboxItem

要添加到工具箱中的已链接 ToolboxItem

host
IDesignerHost

当前设计文档的 IDesignerHost

注解

链接工具箱项是仅适用于特定项目的工具箱项。

适用于

AddLinkedToolboxItem(ToolboxItem, String, IDesignerHost)

将指定的与项目链接的工具箱项添加到指定类别的工具箱。

public:
 void AddLinkedToolboxItem(System::Drawing::Design::ToolboxItem ^ toolboxItem, System::String ^ category, System::ComponentModel::Design::IDesignerHost ^ host);
public void AddLinkedToolboxItem (System.Drawing.Design.ToolboxItem toolboxItem, string category, System.ComponentModel.Design.IDesignerHost host);
abstract member AddLinkedToolboxItem : System.Drawing.Design.ToolboxItem * string * System.ComponentModel.Design.IDesignerHost -> unit
Public Sub AddLinkedToolboxItem (toolboxItem As ToolboxItem, category As String, host As IDesignerHost)

参数

toolboxItem
ToolboxItem

要添加到工具箱中的已链接 ToolboxItem

category
String

要添加给工具箱项的工具箱项类别。

host
IDesignerHost

当前设计文档的 IDesignerHost

注解

链接工具箱项是仅适用于特定项目的工具箱项。

适用于