ListBox.IntegerCollection.CopyTo(Array, Int32) Metod

Definition

Kopierar hela ListBox.IntegerCollection till en befintlig matris med heltal på en angiven plats i matrisen.

public:
 virtual void CopyTo(Array ^ destination, int index);
public void CopyTo(Array destination, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (destination As Array, index As Integer)

Parametrar

destination
Array

Matrisen ListBox.IntegerCollection som kopieras till.

index
Int32

Platsen i målmatrisen som du vill kopiera ListBox.IntegerCollection.

Implementeringar

Undantag

.NET 5 och senare: destination är null.

Kommentarer

CopyTo Använd metoden för att kombinera heltal 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 ListBox kontroll med hjälp av AddRange metoden .

Gäller för