Share via


DesignerVerbCollection.CopyTo(DesignerVerb[], Int32) Metoda

Definice

Zkopíruje členy kolekce do zadaného DesignerVerb pole počínaje zadaným cílovým indexem.

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)

Parametry

array
DesignerVerb[]

Pole, do které chcete kopírovat členy kolekce.

index
Int32

Cílový index, do který se má začít kopírovat.

Příklady

Následující příklad kódu ukazuje, jak kopírovat kolekci DesignerVerb objektů do pole.

// 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)

Platí pro