Returns the active document. The active document is the one you are working on.
Syntax: |
---|
DlxApp.GetActiveDocument() |
Return Value
Returns the object corresponding to the active document. Call the IsValid() method to determine if the object is valid.
Example
Copy code | |
---|---|
if (DlxApp.GetActiveDocument().IsValid())
{
DlxApp.Trace("Active document: %s", DlxApp.GetActiveDocument().GetName());
}
|