Copies the styles in the collection to a specified array at a specified position.
Syntax
'Declaration
Public Overloads Overridable Sub CopyTo( _
ByVal As System.Array, _
ByVal As System.Integer _
)
'Usage
Dim instance As StyleInfoCollection
Dim array As System.Array
Dim index As System.Integer
instance.CopyTo(array, index)
public virtual void CopyTo(
System.Array ,
System.int
)
Parameters
- array
- The one-dimensional array into which the elements from ICollection are copied. The array must have zero-based indexing.
- index
- The zero-based index in the array at which to paste styles.
Exceptions
Exception | Description |
System.ArgumentNullException | No array specified, or the specified array is null (Nothing). |
System.ArgumentException | The specified array is not valid; must have a rank of one. |
System.ArgumentException | The specified array is not valid; must have sufficient length. |
System.IndexOutOfRangeException | The specified index is out of range; must be greater than zero. |
See Also