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,包含與指定的設計工具主應用程式相關聯的目前工具箱項目。

適用於