FrameworkElementFactory Constructors

Definition

Initializes a new instance of the FrameworkElementFactory class.

Overloads

FrameworkElementFactory()

Initializes a new instance of the FrameworkElementFactory class.

FrameworkElementFactory(String)

Initializes a new instance of the FrameworkElementFactory class with the specified text to produce.

FrameworkElementFactory(Type)

Initializes a new instance of the FrameworkElementFactory class with the specified Type.

FrameworkElementFactory(Type, String)

Initializes a new instance of the FrameworkElementFactory class with the specified Type and name.

FrameworkElementFactory()

Initializes a new instance of the FrameworkElementFactory class.

C#
public FrameworkElementFactory();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

FrameworkElementFactory(String)

Initializes a new instance of the FrameworkElementFactory class with the specified text to produce.

C#
public FrameworkElementFactory(string text);

Parameters

text
String

The text string to produce.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

FrameworkElementFactory(Type)

Initializes a new instance of the FrameworkElementFactory class with the specified Type.

C#
public FrameworkElementFactory(Type type);

Parameters

type
Type

The type of instance to create.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

FrameworkElementFactory(Type, String)

Initializes a new instance of the FrameworkElementFactory class with the specified Type and name.

C#
public FrameworkElementFactory(Type type, string name);

Parameters

type
Type

The type of instance to create.

name
String

The style identifier.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10