DesignerVerbCollection.CopyTo(DesignerVerb[], Int32) Méthode

Définition

Copie les membres de la collection vers le tableau DesignerVerb spécifié, en commençant à l'index de destination déterminé.

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)

Paramètres

array
DesignerVerb[]

Tableau dans lequel copier les membres de la collection.

index
Int32

Index de destination à partir duquel commencer la copie.

Exemples

L’exemple de code suivant montre comment copier une collection d’objets DesignerVerb dans un tableau.

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

S’applique à