ToolboxService::IToolboxService::GetToolboxItems Method (String^, IDesignerHost^)

 

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

Namespace:   System.Drawing.Design
Assembly:  System.Drawing.Design (in System.Drawing.Design.dll)

private:
virtual ToolboxItemCollection^ GetToolboxItems(
	String^ category,
	IDesignerHost^ host
) sealed = IToolboxService::GetToolboxItems

Parameters

category
Type: System::String^

The toolbox item category to retrieve the toolbox items from.

host
Type: System.ComponentModel.Design::IDesignerHost^

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

Return Value

Type: System.Drawing.Design::ToolboxItemCollection^

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

Exception Condition
ArgumentNullException

category or host is null.

.NET Framework
Available since 2.0
Return to top
Show: