Changes position of the page within the collection of document pages.

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

Syntax

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

Parameters

srcIndex
Type: System.Int32
Index of the page to move.
destIndex
Type: System.Int32
The index to move page to.

Remarks

The page being moved is 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 page will be moved to the end of the collection.

See Also