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)

适用于