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