TransformCollection.CopyTo(Transform[], Int32) 方法

定义

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

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

参数

array
Transform[]

作为从 TransformCollection 复制的项的目标的一维数组。The one-dimensional array that is the destination of the items copied from the TransformCollection. 该数组的索引必须从零开始。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- TransformCollection 中的项数大于从 index 到目标 array 结尾的可用空间。The number of items in the source TransformCollection is greater than the available space from index to the end of the destination array.

适用于

另请参阅