ColumnDefinitionCollection::CopyTo Method (array<ColumnDefinition^>^, Int32)
.NET Framework (current version)
Copies an array of ColumnDefinition objects to a given index position within a ColumnDefinitionCollection.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- array
-
Type:
array<System.Windows.Controls::ColumnDefinition^>^
An array of ColumnDefinition objects.
- index
-
Type:
System::Int32
Identifies the index position within array to which the ColumnDefinition objects are copied.
Implements
ICollection<T>::CopyTo(array<T>^, Int32)| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| ArgumentException | array is multidimensional. -or- The number of elements in the source ICollection is greater than the available space from index to the end of the destination array. |
| ArgumentOutOfRangeException | index is less than zero. |
ColumnDefinitionCollection uses a zero-based indexing system.
.NET Framework
Available since 3.0
Available since 3.0
Show: