IToolboxService.GetToolboxItems 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从工具箱获取工具箱项的集合。
重载
| 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.ToolboxItemCollectionPublic 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.ToolboxItemCollectionPublic 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.ToolboxItemCollectionPublic 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.ToolboxItemCollectionPublic Function GetToolboxItems (host As IDesignerHost) As ToolboxItemCollection参数
- host
- IDesignerHost
与要检索的工具箱项关联的 IDesignerHost。
返回
包含与指定设计器宿主关联的当前工具箱项的 ToolboxItemCollection。