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
firstIndexintThe zero-based index of the first page to swap.
secondIndexintThe 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
firstIndexorsecondIndexis outside the bounds of the collection.