Click or drag to resize

PdfPagesCopyTo Method

Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax
public void CopyTo(
	PdfPage[] array,
	int arrayIndex
)

Parameters

array  PdfPage
The one-dimensional Array that is the destination of the elements copied from collection. The Array must have zero-based indexing.
arrayIndex  Int32
The zero-based index in array at which copying begins.

Implements

ICollectionTCopyTo(T, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is .
ArgumentOutOfRangeExceptionarrayIndex is less than 0 or greater than array's Length.
ArgumentExceptionThe number of elements in the source PdfPages is greater than the available space from arrayIndex to the end of the destination array.
See Also