[]
        
(Showing Draft Content)

FarPoint.Web.Spread.NamedStyleCollection.CopyTo

CopyTo Method

CopyTo(NamedStyle[], int)

Copies the styles in the collection to a specified array at a specified position.

Declaration
public virtual void CopyTo(NamedStyle[] namedStyles, int index)
Public Overridable Sub CopyTo(namedStyles As NamedStyle(), index As Integer)
Parameters
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.

CopyTo(Array, int)

Copies the styles in the collection to a specified array at a specified position.

Declaration
public virtual void CopyTo(Array array, int index)
Public Overridable Sub CopyTo(array As Array, index As Integer)
Parameters
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

Implements
Exceptions
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