Removes the page from the document.
![]() |
---|
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
![]() |
|
---|---|
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();
}
|