/
MovePage Method

MovePage Method

Moves a page from one index in the page array to another.

public void MovePage(int index, int newIndex);

Classes: Document


Parameters

int index

Index of the page to move.

int newIndex

Destination index of the moving page.


Example

The following example demonstrates moving the first page of a document to the end of that document. The new index is targeted using the Document.PageCount integer property.

Process.Document.MovePage(0, Process.Document.PageCount);

Remarks

Throws an InvalidOperationException if called on a GlobalAction process.

Throws an IndexOutOfRangeException if the target index is too large for the document.

Related content

ReplacePage Method
ReplacePage Method
More like this
InsertPage Method
InsertPage Method
More like this
RemovePage Method
RemovePage Method
More like this
GetPage Method
GetPage Method
More like this
MergePages Method
MergePages Method
More like this
Viewing and Editing with Document Thumbnails
Viewing and Editing with Document Thumbnails
More like this