DataGridViewComboBoxCell::ObjectCollection::CopyTo Method (array<Object^>^, Int32)

 

Copies the entire collection into an existing array of objects at a specified location within the array.

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

public:
void CopyTo(
	array<Object^>^ destination,
	int arrayIndex
)

Parameters

destination
Type: array<System::Object^>^

The destination array to which the contents will be copied.

arrayIndex
Type: System::Int32

The index of the element in dest at which to start copying.

Exception Condition
ArgumentNullException

destination is null.

ArgumentOutOfRangeException

arrayIndex 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 arrayIndex to the end of destination.

ArgumentException

destination is multidimensional.

.NET Framework
Available since 2.0
Return to top
Show: