Share via


IToolboxService.GetToolboxItems 方法

定义

从工具箱获取工具箱项的集合。

重载

GetToolboxItems(String)

从与指定类别相匹配的工具箱获取工具箱项的集合。

GetToolboxItems(String, IDesignerHost)

从工具箱获取与指定的设计器宿主和类别关联的工具箱项的集合。

GetToolboxItems()

从工具箱获取工具箱项的整个集合。

GetToolboxItems(IDesignerHost)

从工具箱获取与指定的设计器宿主关联的工具箱项的集合。

GetToolboxItems(String)

从与指定类别相匹配的工具箱获取工具箱项的集合。

public:
 System::Drawing::Design::ToolboxItemCollection ^ GetToolboxItems(System::String ^ category);
public System.Drawing.Design.ToolboxItemCollection GetToolboxItems (string category);
abstract member GetToolboxItems : string -> System.Drawing.Design.ToolboxItemCollection
Public Function GetToolboxItems (category As String) As ToolboxItemCollection

参数

category
String

要从其中检索所有工具箱项的工具箱项类别。

返回

包含与指定类别关联的当前工具箱项的 ToolboxItemCollection

适用于

GetToolboxItems(String, IDesignerHost)

从工具箱获取与指定的设计器宿主和类别关联的工具箱项的集合。

public:
 System::Drawing::Design::ToolboxItemCollection ^ GetToolboxItems(System::String ^ category, System::ComponentModel::Design::IDesignerHost ^ host);
public System.Drawing.Design.ToolboxItemCollection GetToolboxItems (string category, System.ComponentModel.Design.IDesignerHost host);
abstract member GetToolboxItems : string * System.ComponentModel.Design.IDesignerHost -> System.Drawing.Design.ToolboxItemCollection
Public Function GetToolboxItems (category As String, host As IDesignerHost) As ToolboxItemCollection

参数

category
String

要从其中检索工具箱项的工具箱项类别。

host
IDesignerHost

与要检索的工具箱项关联的 IDesignerHost

返回

包含与指定的类别和设计器宿主关联的当前工具箱项的 ToolboxItemCollection

适用于

GetToolboxItems()

从工具箱获取工具箱项的整个集合。

public:
 System::Drawing::Design::ToolboxItemCollection ^ GetToolboxItems();
public System.Drawing.Design.ToolboxItemCollection GetToolboxItems ();
abstract member GetToolboxItems : unit -> System.Drawing.Design.ToolboxItemCollection
Public Function GetToolboxItems () As ToolboxItemCollection

返回

包含当前工具箱项的 ToolboxItemCollection

适用于

GetToolboxItems(IDesignerHost)

从工具箱获取与指定的设计器宿主关联的工具箱项的集合。

public:
 System::Drawing::Design::ToolboxItemCollection ^ GetToolboxItems(System::ComponentModel::Design::IDesignerHost ^ host);
public System.Drawing.Design.ToolboxItemCollection GetToolboxItems (System.ComponentModel.Design.IDesignerHost host);
abstract member GetToolboxItems : System.ComponentModel.Design.IDesignerHost -> System.Drawing.Design.ToolboxItemCollection
Public Function GetToolboxItems (host As IDesignerHost) As ToolboxItemCollection

参数

host
IDesignerHost

与要检索的工具箱项关联的 IDesignerHost

返回

包含与指定设计器宿主关联的当前工具箱项的 ToolboxItemCollection

适用于