DataGridViewComboBoxCell.ObjectCollection.ICollection.CopyTo Method (Array, Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Copies the elements of the collection to the specified array, starting at the specified index.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

void ICollection.CopyTo(
	Array destination,
	int index


Type: System.Array

The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.

Type: System.Int32

The zero-based index in the array at which copying begins.

Exception Condition

destination is null.


index is less than 0 or equal to or greater than the length of destination.


The number of elements in the DataGridViewComboBoxCell.ObjectCollection is greater than the available space from index to the end of destination.


destination is multidimensional.

This member is an explicit interface member implementation. It can be used only when the DataGridViewComboBoxCell.ObjectCollection instance is cast to an ICollection interface.

.NET Framework
Available since 2.0
Return to top