VectorCollection.CopyTo(Vector[], Int32) 方法

定义

VectorCollection 的项复制到数组,从指定的数组索引处开始。Copies the items of the VectorCollection to an array, starting at the specified array index.

public:
 virtual void CopyTo(cli::array <System::Windows::Vector> ^ array, int index);
public void CopyTo (System.Windows.Vector[] array, int index);
abstract member CopyTo : System.Windows.Vector[] * int -> unit
override this.CopyTo : System.Windows.Vector[] * int -> unit
Public Sub CopyTo (array As Vector(), index As Integer)

参数

array
Vector[]

作为从 VectorCollection 复制的项的目标的一维数组。The one-dimensional array that is the destination of the items copied from the VectorCollection. 该数组的索引必须从零开始。The array must have zero-based indexing.

index
Int32

array 中从零开始的索引,从此处开始复制。The zero-based index in array at which copying begins.

异常

arraynullarray is null.

index 小于零。index is less than zero.

array 是多维的。array is multidimensional.

-or- VectorCollection 中的项数大于从 index 到目标 array 结尾的可用空间。The number of items in the source VectorCollection is greater than the available space from index to the end of the destination array.

适用于

另请参阅