PdfDocument.MovePages Method (Int32, Int32, Int32)

Changes positions of all pages in specified range within the collection of document pages.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void MovePages(
	int srcIndex,
	int count,
	int destIndex
)
VB
Public Sub MovePages ( 
	srcIndex As Integer,
	count As Integer,
	destIndex As Integer
)

Parameters

srcIndex
Type: System.Int32
Index of the first page in the range.
count
Type: System.Int32
The number of consecutive pages in the range.
destIndex
Type: System.Int32
The index at which first page in range should be placed.

Remarks

The pages being moved are always placed before page with index specified by destIndex parameter. After that the collection of document pages is compacted by shifting pages towards the beginning of the collection.

If index specified by destIndex parameter is equal to the length of the collection then pages will be moved to the end of the collection.

See Also