DataGridViewComboBoxCell::ObjectCollection::ICollection::CopyTo Method (Array^, Int32)

 

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)

private:
virtual void CopyTo(
	Array^ destination,
	int index
) sealed = ICollection::CopyTo

Parameters

destination
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.

index
Type: System::Int32

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

Exception Condition
ArgumentNullException

destination is null.

ArgumentOutOfRangeException

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

-or-

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

ArgumentException

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
Show: