CheckedListBox::CheckedIndexCollection::CopyTo Method (Array^, Int32)
.NET Framework (current version)
Copies the entire collection into an existing array at a specified location within the array.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- dest
-
Type:
System::Array^
The destination array.
- index
-
Type:
System::Int32
The zero-based relative index in dest at which copying begins.
Implements
ICollection::CopyTo(Array^, Int32)| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| RankException | array is multidimensional. |
| ArgumentOutOfRangeException | index is less than zero. |
| ArgumentException | |
| ArrayTypeMismatchException |
You can use this method to combine the selected indexes from multiple collections into a single array.
.NET Framework
Available since 1.1
Available since 1.1
Show: