ComboBox.ObjectCollection.CopyTo(Object[], Int32) Metod

Definition

Kopierar hela samlingen till en befintlig matris med objekt på en angiven plats i matrisen.

public:
 void CopyTo(cli::array <System::Object ^> ^ dest, int arrayIndex);
public:
 void CopyTo(cli::array <System::Object ^> ^ destination, int arrayIndex);
public void CopyTo(object[] dest, int arrayIndex);
public void CopyTo(object[] destination, int arrayIndex);
member this.CopyTo : obj[] * int -> unit
member this.CopyTo : obj[] * int -> unit
Public Sub CopyTo (dest As Object(), arrayIndex As Integer)
Public Sub CopyTo (destination As Object(), arrayIndex As Integer)

Parametrar

destdestination
Object[]

Objektmatrisen som samlingen ska kopieras till.

arrayIndex
Int32

Platsen i målmatrisen som samlingen ska kopieras till.

Kommentarer

Du kan använda den här metoden för att kombinera objekt från flera samlingar till en enda matris. Du kan sedan använda den här matrisen för att fylla i innehållet i en annan ComboBox kontroll med hjälp AddRange av -klassens ComboBox.ObjectCollection metod.

Gäller för

Se även