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
arrayColumnDefinition[]An array of ColumnDefinition objects.
indexintIdentifies the index position within
arrayto which the ColumnDefinition objects are copied.
Exceptions
- ArgumentNullException
arrayis null.- ArgumentException
arrayis multidimensional.-or- The number of elements in the source ICollection is greater than the available space fromindexto the end of the destination array.- ArgumentOutOfRangeException
indexis less than zero.