IToolboxService.GetToolboxItems 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從工具箱裡拿到一堆工具箱裡的物品。
多載
| 名稱 | Description |
|---|---|
| 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 A 包含與指定類別相關聯的當前工具箱項目。
適用於
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 A 裡面包含與指定類別及設計主機相關聯的當前工具箱項目。
適用於
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 A 裡面包含目前的工具箱物品。
適用於
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那是工具箱裡要取回的東西。
傳回
A ToolboxItemCollection 包含與指定設計主機相關聯的當前工具箱項目。