ToolboxService.GetToolboxItem Method (Type, Boolean)

 

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,
	bool nonPublic
)

Parameters

toolType
Type: System.Type

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

nonPublic
Type: System.Boolean

true to search for non-public constructors on the type; false to search for public constructors.

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: