DataGridViewComboBoxCell::ObjectCollection::CopyTo Method (array<Object^>^, Int32)
.NET Framework (current version)
Copies the entire collection into an existing array of objects at a specified location within the array.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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
Available since 2.0
Show: