TextDecorationCollection Constructors

Definition

Initializes a new instance of the TextDecorationCollection class.

Overloads

TextDecorationCollection()

Initializes a new TextDecorationCollection instance that is empty.

TextDecorationCollection(IEnumerable<TextDecoration>)

Initializes a new instance of the TextDecorationCollection class by specifying an enumerator.

TextDecorationCollection(Int32)

Initializes a new TextDecorationCollection instance that is empty and has the specified initial capacity.

TextDecorationCollection()

Initializes a new TextDecorationCollection instance that is empty.

C#
public TextDecorationCollection();

Applies to

.NET Framework 4.8.1 y otras versiones
Producto Versiones
.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

TextDecorationCollection(IEnumerable<TextDecoration>)

Initializes a new instance of the TextDecorationCollection class by specifying an enumerator.

C#
public TextDecorationCollection(System.Collections.Generic.IEnumerable<System.Windows.TextDecoration> collection);

Parameters

collection
IEnumerable<TextDecoration>

An enumerator of type IEnumerable<T>.

Applies to

.NET Framework 4.8.1 y otras versiones
Producto Versiones
.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

TextDecorationCollection(Int32)

Initializes a new TextDecorationCollection instance that is empty and has the specified initial capacity.

C#
public TextDecorationCollection(int capacity);

Parameters

capacity
Int32

The number of elements that the new collection is initially capable of storing.

Applies to

.NET Framework 4.8.1 y otras versiones
Producto Versiones
.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