Click or drag to resize

TypedSortedListEx TKey , TValue CopyTo Method (Array, Int32)

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: 13.2.3.0 (13.2.3.3046)
Syntax
public virtual void CopyTo(
	Array array,
	int arrayIndex
)

Parameters

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

Implements

ICollection CopyTo(Array, Int32)
Exceptions
Exception Condition
ArgumentNullException If specified array is null.
ArgumentException If rank of the array is not 1 or there are not enough elements.
ArgumentOutOfRangeException If specified arrayIndex is less than zero.
See Also