Method CopyTo
CopyTo(ColumnDefinition[], int)
Copies an array of ColumnDefinition objects to a given index position within a GridColumnCollection.
public void CopyTo(ColumnDefinition[] array, int index)
Parameters
array
ColumnDefinition[]An array of ColumnDefinition objects.
index
intIdentifies the index position within
array
to which the ColumnDefinition objects are copied.
Exceptions
- ArgumentNullException
array
is null.- ArgumentException
array
is multidimensional.-or- The number of elements in the source ICollection is greater than the available space fromindex
to the end of the destination array.- ArgumentOutOfRangeException
index
is less than zero.