แก้ไข

แชร์ผ่าน


ToolboxService.IToolboxService.GetToolboxItems Method

Definition

Gets a collection of toolbox items from the toolbox.

Overloads

IToolboxService.GetToolboxItems(String)

Gets a collection of toolbox items from the toolbox that match the specified category.

IToolboxService.GetToolboxItems(String, IDesignerHost)

Gets the collection of toolbox items that are associated with the specified designer host and category from the toolbox.

IToolboxService.GetToolboxItems()

Gets the entire collection of toolbox items from the toolbox.

IToolboxService.GetToolboxItems(IDesignerHost)

Gets the collection of toolbox items that are associated with the specified designer host from the toolbox.

IToolboxService.GetToolboxItems(String)

Gets a collection of toolbox items from the toolbox that match the specified category.

 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

Parameters

category
String

The toolbox item category from which to retrieve all the toolbox items.

Returns

A ToolboxItemCollection that contains the current toolbox items that are associated with the specified category.

Implements

Exceptions

host is null.

Applies to

IToolboxService.GetToolboxItems(String, IDesignerHost)

Gets the collection of toolbox items that are associated with the specified designer host and category from the toolbox.

 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

Parameters

category
String

The toolbox item category to retrieve the toolbox items from.

host
IDesignerHost

The IDesignerHost that is associated with the toolbox items to retrieve.

Returns

A ToolboxItemCollection that contains the current toolbox items that are associated with the specified category and designer host.

Implements

Exceptions

category or host is null.

Applies to

IToolboxService.GetToolboxItems()

Gets the entire collection of toolbox items from the toolbox.

 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

Returns

A ToolboxItemCollection that contains the current toolbox items.

Implements

Applies to

IToolboxService.GetToolboxItems(IDesignerHost)

Gets the collection of toolbox items that are associated with the specified designer host from the toolbox.

 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

Parameters

host
IDesignerHost

The IDesignerHost that is associated with the toolbox items to retrieve.

Returns

A ToolboxItemCollection that contains the current toolbox items that are associated with the specified designer host.

Implements

Exceptions

host is null.

Applies to