DesignerRegionCollection.CopyTo(Array, Int32) 方法

定义

从特定的 Array 索引开始,将集合的元素复制到 Array 对象。Copies the elements of the collection to an Array object, starting at a particular Array index.

public:
 void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
member this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)

参数

array
Array

复制区域的目标 ArrayThe Array that is the destination of the copied regions. Array 必须具有从零开始的索引。The Array must have zero-based indexing.

index
Int32

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

注解

使用 AddInsert 方法将设计区域添加到 DesignerRegionCollection 集合中。Use the Add or Insert method to add the design regions to the DesignerRegionCollection collection.

适用于