语言

VectorCollection 构造函数

定义

初始化 VectorCollection 类的新实例。

重载

名称 说明
VectorCollection()

初始化 VectorCollection 类的新实例。

VectorCollection(IEnumerable<Vector>)

初始化类的新实例,该实例 VectorCollection 包含从指定值集合复制的 Vector 项,并且具有与复制的项数相同的初始容量。

VectorCollection(Int32)

使用指定的容量初始化类的新实例 VectorCollection 。

VectorCollection()

初始化 VectorCollection 类的新实例。

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

适用于

VectorCollection(IEnumerable<Vector>)

初始化类的新实例,该实例 VectorCollection 包含从指定值集合复制的 Vector 项,并且具有与复制的项数相同的初始容量。

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

参数

collection
IEnumerable<Vector>

项复制到新 VectorCollection项的集合。

例外

collection 是 null。

适用于

VectorCollection(Int32)

使用指定的容量初始化类的新实例 VectorCollection 。

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

参数

capacity
Int32

集合最初能够存储的值数 Vector 。

适用于