Share via


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)

適用於