ToolboxItemAttribute Constructors

Definition

Initializes a new instance of the ToolboxItemAttribute class and specifies whether to use default initialization values.

Overloads

ToolboxItemAttribute(Boolean)

Initializes a new instance of the ToolboxItemAttribute class and specifies whether to use default initialization values.

ToolboxItemAttribute(String)

Initializes a new instance of the ToolboxItemAttribute class using the specified name of the type.

ToolboxItemAttribute(Type)

Initializes a new instance of the ToolboxItemAttribute class using the specified type of the toolbox item.

ToolboxItemAttribute(Boolean)

Initializes a new instance of the ToolboxItemAttribute class and specifies whether to use default initialization values.

public:
 ToolboxItemAttribute(bool defaultType);
public ToolboxItemAttribute (bool defaultType);
new System.ComponentModel.ToolboxItemAttribute : bool -> System.ComponentModel.ToolboxItemAttribute
Public Sub New (defaultType As Boolean)

Parameters

defaultType
Boolean

true to create a toolbox item attribute for a default type; false to associate no default toolbox item support for this attribute.

Remarks

By default, the ToolboxItemType property is set to ToolboxItem.

ToolboxItemAttribute(String)

Initializes a new instance of the ToolboxItemAttribute class using the specified name of the type.

public:
 ToolboxItemAttribute(System::String ^ toolboxItemTypeName);
public ToolboxItemAttribute (string toolboxItemTypeName);
new System.ComponentModel.ToolboxItemAttribute : string -> System.ComponentModel.ToolboxItemAttribute
Public Sub New (toolboxItemTypeName As String)

Parameters

toolboxItemTypeName
String

The names of the type of the toolbox item and of the assembly that contains the type.

Remarks

This constructor expects the toolboxItemTypeName parameter to be in the form <name of the item type>, <name of the assembly> (for example, System.Drawing.Design.ToolboxItem, System.Drawing.Design).

ToolboxItemAttribute(Type)

Initializes a new instance of the ToolboxItemAttribute class using the specified type of the toolbox item.

public:
 ToolboxItemAttribute(Type ^ toolboxItemType);
public ToolboxItemAttribute (Type toolboxItemType);
new System.ComponentModel.ToolboxItemAttribute : Type -> System.ComponentModel.ToolboxItemAttribute
Public Sub New (toolboxItemType As Type)

Parameters

toolboxItemType
Type

The type of the toolbox item.

Applies to