Adobe InCopy CS5 (7.0) Object Model JS: Pages

InCopy CS5

Class

Pages

 A collection of pages.

QuickLinks

[], anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Page [] (index: number)
Returns the Page with the specified index.

ParameterTypeDescription
indexnumberThe index.

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: varies)
Returns the Page with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer or String.

Page itemByID (id: number)
Returns the Page with the specified ID.

ParameterTypeDescription
idnumberThe ID.

Page itemByName (name: string)
Returns the Page with the specified name.

ParameterTypeDescription
namestringThe name.

Array of Page itemByRange (from: varies, to: varies)
Returns the Pages within the specified range.

ParameterTypeDescription
fromLong Integer
Page
String
The Page, index, or name at the beginning of the range. Can accept: Page, Long Integer or String.
toLong 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.

ParameterTypeDescription
objPageThe Page whose index comes before the desired Page.

Page previousItem (obj: Page)
Returns the Page with the index previous to the specified index.

ParameterTypeDescription
objPageThe 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, 23-Mar-2011 v3.0.3dContents :: Index