Returns the specified page.
Syntax: |
DlxGraphixDocument.GetPage(index)
|
Parameters
Parameter |
Description |
index |
The index of the page. The index must be in the range:
1 .. GetPageCount(). |
Return Value
Returns the object corresponding to the 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 count = doc.GetPageCount();
for (var i = 1; i <= count; i++)
{
DlxApp.Printf("%s", doc.GetPage(i).GetName());
}
}
|
See also