ReorderPageByID Method

Places page into the specified position in the page collection of the document. The page to be repositioned is specified by the ID (the ID property) of the page in the page collection of the document. The position is indicated by the ID of the page, to which position the specified page must be placed.

Applies to: Document object

Syntax

[[Let] booleanRet =] object.ReorderPageByID ( pageIDFrom, pageIDTo )

The ReorderPageByID method syntax has these parts:

Part Description
object Required. An expression, that returns an instance of the Document object.
pageIDFrom

Required. An expression that returns a Long value. Represents the ID (the ID property) of the page to be repositioned.

pageIDTo

Required. An expression that returns a Long value. Represents the ID (the ID property) of the page, to which position the page specified by pageIDFrom will be placed.

booleanRet Optional. A Boolean type variable.

Remarks

If there is no page with the pageIDFrom or pageIDTo ID in the page collection of the document, the ReorderPageByID doesn't reorder the page and returns False. If the page was repositioned successfully, this method returns True.

 

See Also

ID property, AddPage method, FindPage method, Page method, PageByID method, PagesNum method, RemovePage method, RemovePageByID method, ReorderPage method, Page object