TextDecorationCollection TextDecorationCollection TextDecorationCollection TextDecorationCollection Constructors

定义

重载

TextDecorationCollection() TextDecorationCollection() TextDecorationCollection()

初始化一个空的新 TextDecorationCollection 实例。Initializes a new TextDecorationCollection instance that is empty.

TextDecorationCollection(IEnumerable<TextDecoration>) TextDecorationCollection(IEnumerable<TextDecoration>) TextDecorationCollection(IEnumerable<TextDecoration>) TextDecorationCollection(IEnumerable<TextDecoration>)

通过指定一个枚举器,初始化 TextDecorationCollection 类的新实例。Initializes a new instance of the TextDecorationCollection class by specifying an enumerator.

TextDecorationCollection(Int32) TextDecorationCollection(Int32) TextDecorationCollection(Int32) TextDecorationCollection(Int32)

初始化新 TextDecorationCollection 实例,该实例为空并且具有指定的初始容量。Initializes a new TextDecorationCollection instance that is empty and has the specified initial capacity.

TextDecorationCollection() TextDecorationCollection() TextDecorationCollection()

初始化一个空的新 TextDecorationCollection 实例。Initializes a new TextDecorationCollection instance that is empty.

public:
 TextDecorationCollection();
public TextDecorationCollection ();
Public Sub New ()

TextDecorationCollection(IEnumerable<TextDecoration>) TextDecorationCollection(IEnumerable<TextDecoration>) TextDecorationCollection(IEnumerable<TextDecoration>) TextDecorationCollection(IEnumerable<TextDecoration>)

通过指定一个枚举器,初始化 TextDecorationCollection 类的新实例。Initializes a new instance of the TextDecorationCollection class by specifying an enumerator.

public:
 TextDecorationCollection(System::Collections::Generic::IEnumerable<System::Windows::TextDecoration ^> ^ collection);
public TextDecorationCollection (System.Collections.Generic.IEnumerable<System.Windows.TextDecoration> collection);
new System.Windows.TextDecorationCollection : seq<System.Windows.TextDecoration> -> System.Windows.TextDecorationCollection
Public Sub New (collection As IEnumerable(Of TextDecoration))

参数

collection
IEnumerable<TextDecoration>

IEnumerable<T> 类型的枚举数。An enumerator of type IEnumerable<T>.

TextDecorationCollection(Int32) TextDecorationCollection(Int32) TextDecorationCollection(Int32) TextDecorationCollection(Int32)

初始化新 TextDecorationCollection 实例,该实例为空并且具有指定的初始容量。Initializes a new TextDecorationCollection instance that is empty and has the specified initial capacity.

public:
 TextDecorationCollection(int capacity);
public TextDecorationCollection (int capacity);
new System.Windows.TextDecorationCollection : int -> System.Windows.TextDecorationCollection
Public Sub New (capacity As Integer)

参数

capacity
Int32 Int32 Int32 Int32

新集合最初可存储的元素数。The number of elements that the new collection is initially capable of storing.

适用于