DataGridViewComboBoxCell.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 ^> ^ destination, int arrayIndex);
public void CopyTo(object[] destination, int arrayIndex);
member this.CopyTo : obj[] * int -> unit
Public Sub CopyTo (destination As Object(), arrayIndex As Integer)

Parametrar

destination
Object[]

Målmatrisen som innehållet ska kopieras till.

arrayIndex
Int32

Indexet för elementet destination där kopieringen ska börja.

Undantag

destination är null.

arrayIndex är mindre än 0 eller lika med eller större än längden på destination.

-eller-

Antalet element i DataGridViewComboBoxCell.ObjectCollection är större än det tillgängliga utrymmet från arrayIndex till slutet av destination.

destination är flerdimensionellt.

Gäller för

Se även