Прочетете на английски Редактиране

Споделяне чрез


ToolboxItemWrapper Constructors

Definition

Initializes a new instance of the ToolboxItemWrapper class.

Overloads

ToolboxItemWrapper()

Initializes a new instance of the ToolboxItemWrapper class.

ToolboxItemWrapper(Type)

Initializes a new instance of the ToolboxItemWrapper class with the type of the tool.

ToolboxItemWrapper(Type, String)

Initializes a new instance of the ToolboxItemWrapper class with the type of the tool and a specified display name.

ToolboxItemWrapper(Type, String, String)

Initializes a new instance of the ToolboxItemWrapper class with the type of the tool and specified names for the bitmap and display.

ToolboxItemWrapper(String, String, String, String)

Initializes a new instance of the ToolboxItemWrapper class with specified names for the tool, assembly, bitmap, and display.

ToolboxItemWrapper()

Initializes a new instance of the ToolboxItemWrapper class.

C#
public ToolboxItemWrapper();

Remarks

The parameterless constructor initializes the ToolName, AssemblyName, BitmapName, and DisplayName properties with an empty string.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ToolboxItemWrapper(Type)

Initializes a new instance of the ToolboxItemWrapper class with the type of the tool.

C#
public ToolboxItemWrapper(Type toolType);

Parameters

toolType
Type

The type of the tool.

Remarks

The ToolName and AssemblyName properties can be extracted from the toolType parameter. The BitmapName and DisplayName properties are each initialized with an empty string.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ToolboxItemWrapper(Type, String)

Initializes a new instance of the ToolboxItemWrapper class with the type of the tool and a specified display name.

C#
public ToolboxItemWrapper(Type toolType, string displayName);

Parameters

toolType
Type

The type of the tool.

displayName
String

The name of the display.

Remarks

The ToolName and AssemblyName properties can be extracted from the toolType parameter. The BitmapName property is initialized with an empty string.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ToolboxItemWrapper(Type, String, String)

Initializes a new instance of the ToolboxItemWrapper class with the type of the tool and specified names for the bitmap and display.

C#
public ToolboxItemWrapper(Type toolType, string bitmapName, string displayName);

Parameters

toolType
Type

The type of the tool.

bitmapName
String

A string that contains the name of the bitmap.

displayName
String

A string that contains the name of the display.

Remarks

The ToolName and AssemblyName properties can be extracted from the toolType parameter.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ToolboxItemWrapper(String, String, String, String)

Initializes a new instance of the ToolboxItemWrapper class with specified names for the tool, assembly, bitmap, and display.

C#
public ToolboxItemWrapper(string toolName, string assemblyName, string bitmapName, string displayName);

Parameters

toolName
String

The name of the tool.

assemblyName
String

The name of the assembly.

bitmapName
String

The name of the bitmap.

displayName
String

The name of the display.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1