DesignerAttribute Constructors

Definition

Initializes a new instance of the DesignerAttribute class.

Overloads

DesignerAttribute(String)

Initializes a new instance of the DesignerAttribute class using the name of the type that provides design-time services.

DesignerAttribute(Type)

Initializes a new instance of the DesignerAttribute class using the type that provides design-time services.

DesignerAttribute(String, String)

Initializes a new instance of the DesignerAttribute class using the designer type and the base class for the designer.

DesignerAttribute(String, Type)

Initializes a new instance of the DesignerAttribute class, using the name of the designer class and the base class for the designer.

DesignerAttribute(Type, Type)

Initializes a new instance of the DesignerAttribute class using the types of the designer and designer base class.

DesignerAttribute(String)

Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs

Initializes a new instance of the DesignerAttribute class using the name of the type that provides design-time services.

C#
public DesignerAttribute(string designerTypeName);

Parameters

designerTypeName
String

The concatenation of the fully qualified name of the type that provides design-time services for the component this attribute is bound to, and the name of the assembly this type resides in.

Remarks

The class you use for the design-time services must implement the IDesigner interface.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 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
.NET Standard 2.0, 2.1

DesignerAttribute(Type)

Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs

Initializes a new instance of the DesignerAttribute class using the type that provides design-time services.

C#
public DesignerAttribute(Type designerType);

Parameters

designerType
Type

A Type that represents the class that provides design-time services for the component this attribute is bound to.

Remarks

The class you use for the design-time services must implement the IDesigner interface.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 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
.NET Standard 2.0, 2.1

DesignerAttribute(String, String)

Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs

Initializes a new instance of the DesignerAttribute class using the designer type and the base class for the designer.

C#
public DesignerAttribute(string designerTypeName, string designerBaseTypeName);

Parameters

designerTypeName
String

The concatenation of the fully qualified name of the type that provides design-time services for the component this attribute is bound to, and the name of the assembly this type resides in.

designerBaseTypeName
String

The fully qualified name of the base class to associate with the designer class.

Remarks

The class you use for the design-time services must implement the IDesigner interface.

The designerBaseTypeName parameter allows you to attach more than one type of designer for a given class.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 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
.NET Standard 2.0, 2.1

DesignerAttribute(String, Type)

Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs

Initializes a new instance of the DesignerAttribute class, using the name of the designer class and the base class for the designer.

C#
public DesignerAttribute(string designerTypeName, Type designerBaseType);

Parameters

designerTypeName
String

The concatenation of the fully qualified name of the type that provides design-time services for the component this attribute is bound to, and the name of the assembly this type resides in.

designerBaseType
Type

A Type that represents the base class to associate with the designerTypeName.

Remarks

The class you use for the design-time services must implement the IDesigner interface.

The designerBaseType parameter allows you to attach more than one type of designer for a given class.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 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
.NET Standard 2.0, 2.1

DesignerAttribute(Type, Type)

Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs
Source:
DesignerAttribute.cs

Initializes a new instance of the DesignerAttribute class using the types of the designer and designer base class.

C#
public DesignerAttribute(Type designerType, Type designerBaseType);

Parameters

designerType
Type

A Type that represents the class that provides design-time services for the component this attribute is bound to.

designerBaseType
Type

A Type that represents the base class to associate with the designerType.

Remarks

The class you use for the design-time services must implement the IDesigner interface.

The designerBaseType parameter allows you to attach more than one type of designer for a given class.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 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
.NET Standard 2.0, 2.1