Returns the document to which the page belongs.
Syntax: |
---|
DlxPage.GetDocument() |
Return Value
Returns the object corresponding to the parent of this page. Call the IsValid() method to determine if the object is valid.
Example
Copy code | |
---|---|
var doc = DlxApp.GetJob().FindDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (doc.IsValid())
{
var page = doc.GetActivePage();
DlxApp.Printf("The doc name is %s", page.GetDocument().GetName());
}
|