共用方式為


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

適用於