DesignerVerbCollection.CopyTo(DesignerVerb[], Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Copie les membres de la collection dans le tableau spécifié DesignerVerb à partir de l’index de destination spécifié.
public:
void CopyTo(cli::array <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 vers lequel 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)