Move the page to a new location.

syntaxSyntax:
DlxGraphixDocument.MovePage(page, position)

Parameters

Parameter Description
page The page to move.
position The new page position. To make the page the last one in the document, specify -1.

Return Value

If the operation ends correctly it returns true otherwise it returns false.

Example

  Copy codeCopy code
var doc = DlxApp.GetJob().FindDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (doc.IsValid())
{
  doc.OpenPageManagementUndo();
  var p = doc.GetPage(1);
  doc.MovePage(p, -1);
  doc.ClosePageManagementUndo();
}

See also