Changes positions of all pages specified by their indexes 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[] indexes,
	int destIndex
)
VB
Public Sub MovePages ( 
	indexes As Integer(),
	destIndex As Integer
)

Parameters

indexes
Type: System.Int32[]
The indexes of the pages to move.
destIndex
Type: System.Int32
The index at which first page 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.

The array of indexes specified by indexes must not contain duplicate entries.

See Also