IToolboxService.GetToolboxItems 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从工具箱中获取工具箱项的集合。
重载
| 名称 | 说明 |
|---|---|
| GetToolboxItems(String) |
从与指定类别匹配的工具箱中获取工具箱项的集合。 |
| GetToolboxItems(String, IDesignerHost) |
从工具箱中获取与指定设计器主机和类别关联的工具箱项的集合。 |
| GetToolboxItems() |
从工具箱中获取工具箱项的整个集合。 |
| GetToolboxItems(IDesignerHost) |
从工具箱中获取与指定设计器主机关联的工具箱项的集合。 |
GetToolboxItems(String)
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
从与指定类别匹配的工具箱中获取工具箱项的集合。
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)
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
从工具箱中获取与指定设计器主机和类别关联的工具箱项的集合。
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()
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
从工具箱中获取工具箱项的整个集合。
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
返回
包含当前工具箱项的 A ToolboxItemCollection 。
适用于
GetToolboxItems(IDesignerHost)
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
- Source:
- IToolboxService.cs
从工具箱中获取与指定设计器主机关联的工具箱项的集合。
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 包含与指定设计器主机关联的当前工具箱项。