[]
        
Copies the styles in the collection to a specified array at a specified position.
public virtual void CopyTo(NamedStyle[] namedStyles, int index)
Public Overridable Sub CopyTo(namedStyles As NamedStyle(), index As Integer)
| Type | Name | Description | 
|---|---|---|
| NamedStyle[] | namedStyles | One-dimensional array into which are copied the elements from ICollection (The array must have zero-based indexing.)  | 
    
| int | index | Zero-based index in array at which to paste styles.  | 
    
Copies the styles in the collection to a specified array at a specified position.
public virtual void CopyTo(Array array, int index)
Public Overridable Sub CopyTo(array As Array, index As Integer)
| Type | Name | Description | 
|---|---|---|
| Array | array | One-dimensional array into which are copied the elements from ICollection (The array must have zero-based indexing.)  | 
    
| int | index | Zero-based index in array at which to paste styles  | 
    
| Type | Condition | 
|---|---|
| ArgumentNullException | No array specified, or specified array is null (Nothing)  | 
    
| ArgumentException | Specified array is not valid; must have a rank of one  | 
    
| ArgumentException | Specified array is not valid; must have sufficient length  | 
    
| IndexOutOfRangeException | Specified index is out of range; must be greater than zero  |