Pages
QuickLinks
Properties
Property | Type | Access | Description |
---|---|---|---|
length | number | readonly | The number of objects in the collection. |
Methods
Instances
Page [] (index:
number)
Returns the Page with the specified index.
Parameter | Type | Description |
---|---|---|
index | number | The index. |
Page add ([at:
LocationOptions=LocationOptions.UNKNOWN][, reference:
any][, withProperties:
Object])
Creates a new page.
Parameter | Type | Description |
---|---|---|
at | LocationOptions: LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN | The location of the new page relative to the reference object or within the document or spread. (Optional) (default: LocationOptions.UNKNOWN) |
reference | Document MasterSpread Page Spread | The reference object. Note: Required when the at parameter value specifies before or after. Can accept: Page, Spread, MasterSpread or Document. (Optional) |
withProperties | Object | Initial values for properties of the new Page (Optional) |
Page anyItem ()
Returns any Page in the collection.
number count ()
Displays the number of elements in the Page.
Array of Page everyItem ()
Returns every Page in the collection.
Page firstItem ()
Returns the first Page in the collection.
Page item (index:
any)
Returns the Page with the specified index or name.
Parameter | Type | Description |
---|---|---|
index | Long Integer String | The index or name. Can accept: Long Integer or String. |
Page itemByID (id:
number)
Returns the Page with the specified ID.
Parameter | Type | Description |
---|---|---|
id | number | The ID. |
Page itemByName (name:
string)
Returns the Page with the specified name.
Parameter | Type | Description |
---|---|---|
name | string | The name. |
Array of Page itemByRange (from:
any, to:
any)
Returns the Pages within the specified range.
Parameter | Type | Description |
---|---|---|
from | Long Integer Page String | The Page, index, or name at the beginning of the range. Can accept: Page, Long Integer or String. |
to | Long Integer Page String | The Page, index, or name at the end of the range. Can accept: Page, Long Integer or String. |
Page lastItem ()
Returns the last Page in the collection.
Page middleItem ()
Returns the middle Page in the collection.
Page nextItem (obj:
Page)
Returns the Page whose index follows the specified Page in the collection.
Parameter | Type | Description |
---|---|---|
obj | Page | The Page whose index comes before the desired Page. |
Page previousItem (obj:
Page)
Returns the Page with the index previous to the specified index.
Parameter | Type | Description |
---|---|---|
obj | Page | The index of the Page that follows the desired Page. |
string toSource ()
Generates a string which, if executed, will return the Page.
Element of
Document.pages
MasterSpread.pages
Spread.pages
Jongware, 20-Jun-2010 v3.0.3d | Contents :: Index |