IToolboxService.GetToolboxItems Method

Definition

Gets a collection of toolbox items from the toolbox.

Overloads

GetToolboxItems(String)

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

GetToolboxItems(String, IDesignerHost)

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

GetToolboxItems()

Gets the entire collection of toolbox items from the toolbox.

GetToolboxItems(IDesignerHost)

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

GetToolboxItems(String)

Source:
IToolboxService.cs
Source:
IToolboxService.cs
Source:
IToolboxService.cs

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

C#
public System.Drawing.Design.ToolboxItemCollection GetToolboxItems(string category);

Parameters

category
String

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

Returns

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetToolboxItems(String, IDesignerHost)

Source:
IToolboxService.cs
Source:
IToolboxService.cs
Source:
IToolboxService.cs

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

C#
public System.Drawing.Design.ToolboxItemCollection GetToolboxItems(string category, System.ComponentModel.Design.IDesignerHost host);

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetToolboxItems()

Source:
IToolboxService.cs
Source:
IToolboxService.cs
Source:
IToolboxService.cs

Gets the entire collection of toolbox items from the toolbox.

C#
public System.Drawing.Design.ToolboxItemCollection GetToolboxItems();

Returns

A ToolboxItemCollection that contains the current toolbox items.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetToolboxItems(IDesignerHost)

Source:
IToolboxService.cs
Source:
IToolboxService.cs
Source:
IToolboxService.cs

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

C#
public System.Drawing.Design.ToolboxItemCollection GetToolboxItems(System.ComponentModel.Design.IDesignerHost host);

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10