VectorCollection VectorCollection VectorCollection VectorCollection Constructors

定义

重载

VectorCollection() VectorCollection() VectorCollection()

初始化 VectorCollection 类的新实例。Initializes a new instance of the VectorCollection class.

VectorCollection(IEnumerable<Vector>) VectorCollection(IEnumerable<Vector>) VectorCollection(IEnumerable<Vector>) VectorCollection(IEnumerable<Vector>)

初始化 VectorCollection 类的新实例,该实例包含从指定的 Vector 值集合复制的项并且具有与所复制的项数相同的初始容量。Initializes a new instance of the VectorCollection class that contains items copied from the specified collection of Vector values and has the same initial capacity as the number of items copied.

VectorCollection(Int32) VectorCollection(Int32) VectorCollection(Int32) VectorCollection(Int32)

使用指定的容量初始化 VectorCollection 类的新实例。Initializes a new instance of the VectorCollection class with the specified capacity.

VectorCollection() VectorCollection() VectorCollection()

初始化 VectorCollection 类的新实例。Initializes a new instance of the VectorCollection class.

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

VectorCollection(IEnumerable<Vector>) VectorCollection(IEnumerable<Vector>) VectorCollection(IEnumerable<Vector>) VectorCollection(IEnumerable<Vector>)

初始化 VectorCollection 类的新实例,该实例包含从指定的 Vector 值集合复制的项并且具有与所复制的项数相同的初始容量。Initializes a new instance of the VectorCollection class that contains items copied from the specified collection of Vector values and has the same initial capacity as the number of items copied.

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 中的集合。The collection whose items are copied to the new VectorCollection.

异常

VectorCollection(Int32) VectorCollection(Int32) VectorCollection(Int32) VectorCollection(Int32)

使用指定的容量初始化 VectorCollection 类的新实例。Initializes a new instance of the VectorCollection class with the specified capacity.

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 Int32 Int32 Int32

集合最初可存储的 Vector 值数。The number of Vector values that the collection is initially capable of storing.

适用于