GetToolboxItem Method (Type)
Collapse the table of content
Expand the table of content

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


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

toolType is null.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft