ToolboxService.IToolboxService.GetToolboxItems 方法

定义

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

重载

IToolboxService.GetToolboxItems(String)

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

IToolboxService.GetToolboxItems(String, IDesignerHost)

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

IToolboxService.GetToolboxItems()

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

IToolboxService.GetToolboxItems(IDesignerHost)

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

IToolboxService.GetToolboxItems(String)

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

 virtual System::Drawing::Design::ToolboxItemCollection ^ System.Drawing.Design.IToolboxService.GetToolboxItems(System::String ^ category) = System::Drawing::Design::IToolboxService::GetToolboxItems;
System.Drawing.Design.ToolboxItemCollection IToolboxService.GetToolboxItems (string category);
abstract member System.Drawing.Design.IToolboxService.GetToolboxItems : string -> System.Drawing.Design.ToolboxItemCollection
override this.System.Drawing.Design.IToolboxService.GetToolboxItems : string -> System.Drawing.Design.ToolboxItemCollection
Function GetToolboxItems (category As String) As ToolboxItemCollection Implements IToolboxService.GetToolboxItems

参数

category
String

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

返回

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

实现

例外

hostnull

适用于

IToolboxService.GetToolboxItems(String, IDesignerHost)

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

 virtual System::Drawing::Design::ToolboxItemCollection ^ System.Drawing.Design.IToolboxService.GetToolboxItems(System::String ^ category, System::ComponentModel::Design::IDesignerHost ^ host) = System::Drawing::Design::IToolboxService::GetToolboxItems;
System.Drawing.Design.ToolboxItemCollection IToolboxService.GetToolboxItems (string category, System.ComponentModel.Design.IDesignerHost host);
abstract member System.Drawing.Design.IToolboxService.GetToolboxItems : string * System.ComponentModel.Design.IDesignerHost -> System.Drawing.Design.ToolboxItemCollection
override this.System.Drawing.Design.IToolboxService.GetToolboxItems : string * System.ComponentModel.Design.IDesignerHost -> System.Drawing.Design.ToolboxItemCollection
Function GetToolboxItems (category As String, host As IDesignerHost) As ToolboxItemCollection Implements IToolboxService.GetToolboxItems

参数

category
String

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

host
IDesignerHost

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

返回

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

实现

例外

categoryhostnull

适用于

IToolboxService.GetToolboxItems()

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

 virtual System::Drawing::Design::ToolboxItemCollection ^ System.Drawing.Design.IToolboxService.GetToolboxItems() = System::Drawing::Design::IToolboxService::GetToolboxItems;
System.Drawing.Design.ToolboxItemCollection IToolboxService.GetToolboxItems ();
abstract member System.Drawing.Design.IToolboxService.GetToolboxItems : unit -> System.Drawing.Design.ToolboxItemCollection
override this.System.Drawing.Design.IToolboxService.GetToolboxItems : unit -> System.Drawing.Design.ToolboxItemCollection
Function GetToolboxItems () As ToolboxItemCollection Implements IToolboxService.GetToolboxItems

返回

包含当前工具箱项的 ToolboxItemCollection

实现

适用于

IToolboxService.GetToolboxItems(IDesignerHost)

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

 virtual System::Drawing::Design::ToolboxItemCollection ^ System.Drawing.Design.IToolboxService.GetToolboxItems(System::ComponentModel::Design::IDesignerHost ^ host) = System::Drawing::Design::IToolboxService::GetToolboxItems;
System.Drawing.Design.ToolboxItemCollection IToolboxService.GetToolboxItems (System.ComponentModel.Design.IDesignerHost host);
abstract member System.Drawing.Design.IToolboxService.GetToolboxItems : System.ComponentModel.Design.IDesignerHost -> System.Drawing.Design.ToolboxItemCollection
override this.System.Drawing.Design.IToolboxService.GetToolboxItems : System.ComponentModel.Design.IDesignerHost -> System.Drawing.Design.ToolboxItemCollection
Function GetToolboxItems (host As IDesignerHost) As ToolboxItemCollection Implements IToolboxService.GetToolboxItems

参数

host
IDesignerHost

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

返回

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

实现

例外

hostnull

适用于