DoubleCollection 建構函式

定義

初始化 DoubleCollection 的新執行個體。Initializes a new instance of a DoubleCollection.

多載

DoubleCollection()

初始化 DoubleCollection 的新執行個體。Initializes a new instance of a DoubleCollection.

DoubleCollection(IEnumerable<Double>)

使用指定的 DoubleCollection 值集合,初始化 Double 類別的新執行個體。Initializes a new instance of the DoubleCollection class with the specified collection of Double values.

DoubleCollection(Int32)

使用指定的容量,或集合初始可以儲存的 DoubleCollection 值數目,初始化 Double 類別的新執行個體。Initializes a new instance of the DoubleCollection class with the specified capacity, or the number of Double values the collection is initially capable of storing.

DoubleCollection()

初始化 DoubleCollection 的新執行個體。Initializes a new instance of a DoubleCollection.

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

另請參閱

DoubleCollection(IEnumerable<Double>)

使用指定的 DoubleCollection 值集合,初始化 Double 類別的新執行個體。Initializes a new instance of the DoubleCollection class with the specified collection of Double values.

public:
 DoubleCollection(System::Collections::Generic::IEnumerable<double> ^ collection);
public DoubleCollection (System.Collections.Generic.IEnumerable<double> collection);
new System.Windows.Media.DoubleCollection : seq<double> -> System.Windows.Media.DoubleCollection
Public Sub New (collection As IEnumerable(Of Double))

參數

collection
IEnumerable<Double>

Double 值的集合,該集合組成 DoubleCollectionThe collection of Double values that make up the DoubleCollection.

例外狀況

collectionnullcollection is null.

DoubleCollection(Int32)

使用指定的容量,或集合初始可以儲存的 DoubleCollection 值數目,初始化 Double 類別的新執行個體。Initializes a new instance of the DoubleCollection class with the specified capacity, or the number of Double values the collection is initially capable of storing.

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

參數

capacity
Int32

集合初始可以儲存的 Double 值數目。The number of Double values that the collection is initially capable of storing.

適用於