Removes the page from the document.

syntaxSyntax:
DlxGraphixDocument.DeletePage(page)

Parameters

Parameter Description
page The page to delete.

Return Value

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

Remarks

The page cannot be deleted if it is the only one in the document.

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.DeletePage(p);
  doc.ClosePageManagementUndo();
}

See also