Table of Contents

Method Swap

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Swap(int, int)

Interchanges the positions of two pages within the collection of document pages.

public void Swap(int firstIndex, int secondIndex)

Parameters

firstIndex int

The zero-based index of the first page to swap.

secondIndex int

The zero-based index of the second page to swap.

Remarks

The pages at firstIndex and secondIndex exchange their positions. No other pages in the collection are affected.

See the Swap PDF pages section for examples of exchanging two pages in a PDF document.

Exceptions

ArgumentOutOfRangeException

Thrown when firstIndex or secondIndex is outside the bounds of the collection.