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)

適用於