.. highlightlang:: us .. _pagemove: PageMove ======== .. index:: PageMove .. us.tag PageMove ENGLISH PageSet :ref:`PageMove` moves a page to the specified position inside a document. .. function:: bool = PageMove(hPage, nNewPos) .. us.return **Return Value** *bool* is TRUE (1) if the function was successful and otherwise FALSE (0). .. us.params **Parameters** .. uparam:: hPage *hPage* is the page handle. .. uparam:: nNewPos *nNewPos* is the new position. *nNewPos* = 0 moves the page to the beginning and *nNewPos* = 255 moves the page to the end of the document .. us.example **Example** Move a page to the beginning :: PageMove(hPage, 0); .. seealso:: :ref:`DocGetPageCount`, :ref:`auto_LoadTemplate`, :ref:`GetParent` :sub:`id-52622`