Szerkesztés

Megosztás a következőn keresztül:


ToolboxService.GetToolboxItem Method

Definition

Returns a toolbox item for a given type.

Overloads

GetToolboxItem(Type)

Returns a toolbox item for a given type.

GetToolboxItem(Type, Boolean)

Returns a toolbox item for a given type.

GetToolboxItem(Type)

Returns a toolbox item for a given type.

public:
 static System::Drawing::Design::ToolboxItem ^ GetToolboxItem(Type ^ toolType);
public static System.Drawing.Design.ToolboxItem GetToolboxItem (Type toolType);
static member GetToolboxItem : Type -> System.Drawing.Design.ToolboxItem
Public Shared Function GetToolboxItem (toolType As Type) As ToolboxItem

Parameters

toolType
Type

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

Returns

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

Exceptions

toolType is null.

Applies to

GetToolboxItem(Type, Boolean)

Returns a toolbox item for a given type.

public:
 static System::Drawing::Design::ToolboxItem ^ GetToolboxItem(Type ^ toolType, bool nonPublic);
public static System.Drawing.Design.ToolboxItem GetToolboxItem (Type toolType, bool nonPublic);
static member GetToolboxItem : Type * bool -> System.Drawing.Design.ToolboxItem
Public Shared Function GetToolboxItem (toolType As Type, nonPublic As Boolean) As ToolboxItem

Parameters

toolType
Type

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

nonPublic
Boolean

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

Returns

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

Exceptions

toolType is null.

Applies to