ToolboxItemAttribute Konstruktorer

Definition

Initierar en ny instans av ToolboxItemAttribute klassen och anger om standardinitieringsvärden ska användas.

Överlagringar

Name Description
ToolboxItemAttribute(Boolean)

Initierar en ny instans av ToolboxItemAttribute klassen och anger om standardinitieringsvärden ska användas.

ToolboxItemAttribute(String)

Initierar en ny instans av ToolboxItemAttribute klassen med det angivna namnet på typen.

ToolboxItemAttribute(Type)

Initierar en ny instans av klassen med hjälp av ToolboxItemAttribute den angivna typen av verktygslådeobjekt.

ToolboxItemAttribute(Boolean)

Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs

Initierar en ny instans av ToolboxItemAttribute klassen och anger om standardinitieringsvärden ska användas.

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

Parametrar

defaultType
Boolean

true för att skapa ett verktygslådeobjektattribut för en standardtyp. false för att associera inget standardstöd för verktygslådan för det här attributet.

Kommentarer

Som standardvärde är egenskapen inställd på ToolboxItemTypeToolboxItem.

Gäller för

ToolboxItemAttribute(String)

Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs

Initierar en ny instans av ToolboxItemAttribute klassen med det angivna namnet på typen.

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

Parametrar

toolboxItemTypeName
String

Namnen på typen av verktygslåda och den sammansättning som innehåller typen.

Kommentarer

Den här konstruktorn förväntar sig att parametern toolboxItemTypeName ska vara i formulärnamnet < för objekttypen,namnet><på sammansättningen> (till exempel System.Drawing.Design.ToolboxItem, System.Drawing.Design).

Gäller för

ToolboxItemAttribute(Type)

Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs
Källa:
ToolboxItemAttribute.cs

Initierar en ny instans av klassen med hjälp av ToolboxItemAttribute den angivna typen av verktygslådeobjekt.

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

Parametrar

toolboxItemType
Type

Typ av verktygslådeobjekt.

Gäller för