Adds the entries in an array of Pages to the end of the PageCollection.

Namespace: TallComponents.PDF
Assembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 3.0.69.1

Syntax

C#
public void AddRange(
	Page[] pages
)
Visual Basic
Public Sub AddRange ( _
	pages As Page() _
)

Parameters

pages
Type: array<TallComponents.PDF..::..Page>[]()[][]
The pages to be added to the end of the PageCollection.

Remarks

Pages does not accept a nullNothingnullptra null reference (Nothing in Visual Basic) as a valid value.

PageCollection does not accept duplicate elements. Note: When a duplicate entry is found the state of the collection is undefined. (None or some entries might have been added. The status is not reverted.)

While appending existing pages to a target document, the source documents need to be open until the target document.Write is called.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionA given pages is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentException(At least) one of the entries in the given pages is already in this PageCollection. (Duplicate pages)

See Also