ToolboxService.GetToolboxItem Method (Type)

 

Returns a toolbox item for a given type.

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

public static ToolboxItem GetToolboxItem(
	Type toolType
)

Parameters

toolType
Type: System.Type

The type of component for which to retrieve the toolbox item.

Return Value

Type: System.Drawing.Design.ToolboxItem

A toolbox item associated with the given type, or null if the type has no corresponding toolbox item.

Exception Condition
ArgumentNullException

toolType is null.

.NET Framework
Available since 2.0
Return to top
Show: