DesignerVerbCollection.CopyTo(DesignerVerb[], Int32) 方法

定义

将集合成员复制到从指定目标索引开始的指定 DesignerVerb 数组。

public:
 void CopyTo(cli::array <System::ComponentModel::Design::DesignerVerb ^> ^ array, int index);
public void CopyTo(System.ComponentModel.Design.DesignerVerb?[] array, int index);
public void CopyTo(System.ComponentModel.Design.DesignerVerb[] array, int index);
member this.CopyTo : System.ComponentModel.Design.DesignerVerb[] * int -> unit
Public Sub CopyTo (array As DesignerVerb(), index As Integer)

参数

array
DesignerVerb[]

要将集合成员复制到的数组。

index
Int32

要开始复制到的目标索引。

示例

下面的代码示例演示如何将对象的集合 DesignerVerb 复制到数组。

// Copies the contents of the collection, beginning at index 0,
// to the specified DesignerVerb array.
// 'verbs' is a DesignerVerb array.
collection->CopyTo( verbs, 0 );
// Copies the contents of the collection, beginning at index 0, 
// to the specified DesignerVerb array.
// 'verbs' is a DesignerVerb array.
collection.CopyTo( verbs, 0 );
' Copies the contents of the collection, beginning at index 0, 
' to the specified DesignerVerb array.
' 'verbs' is a DesignerVerb array.
collection.CopyTo(verbs, 0)

适用于