Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

  • No labels