Copies all the elements of the SortedListEx to the specified one-dimensional Array starting at the specified destination Array index.

Namespace: Spire.Doc.Collections
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 9.6.1.0 (9.6.1.3020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public virtual void CopyTo(
	Array array,
	int arrayIndex
)
Public Overridable Sub CopyTo ( 
	array As Array,
	arrayIndex As Integer
)
public:
virtual void CopyTo(
	Array^ array, 
	int arrayIndex
)
abstract CopyTo : 
        array : Array * 
        arrayIndex : int -> unit 
override CopyTo : 
        array : Array * 
        arrayIndex : int -> unit 

Parameters

array
Array
The one-dimensional Array that is the destination of the elements copied from the current list.
arrayIndex
Int32
The index in array at which copying begins.

Implements

ICollection..::..CopyTo(Array, Int32)

Exceptions

ExceptionCondition
System..::..ArgumentNullException If specified array is null.
System..::..ArgumentException If rank of the array is not 1 or there are not enough elements.
System..::..ArgumentOutOfRangeException If specified arrayIndex is less than zero.

See Also