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