Edit in GitHubLog an issue

MasterSpreads

A collection of master spreads.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

MasterSpread add( Number pagesPerSpread, Object withProperties )

Creates a new master spread.

Parameters

TypeNameDescription
Number
pagesPerSpread
The number of pages to include in the master spread. (Optional)
Object
withProperties
Initial values for properties of the new MasterSpread (Optional)

Number count()

Displays the number of elements in the MasterSpread.


MasterSpread item( Mixed index )

Returns the MasterSpread with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

MasterSpread itemByName( String name )

Returns the MasterSpread with the specified name.

Parameters

TypeNameDescription
String
name
The name.

MasterSpread itemByID( Number id )

Returns the MasterSpread with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

MasterSpread itemByRange( Mixed from, Mixed to )

Returns the MasterSpreads within the specified range.

Parameters

TypeNameDescription
Mixed
from
The MasterSpread, index, or name at the beginning of the range. Can accept: MasterSpread, Long Integer or String.
Mixed
to
The MasterSpread, index, or name at the end of the range. Can accept: MasterSpread, Long Integer or String.

MasterSpread firstItem()

Returns the first MasterSpread in the collection.


MasterSpread lastItem()

Returns the last MasterSpread in the collection.


MasterSpread middleItem()

Returns the middle MasterSpread in the collection.


MasterSpread previousItem( MasterSpread obj )

Returns the MasterSpread with the index previous to the specified index.

Parameters

TypeNameDescription
MasterSpread
obj
The index of the MasterSpread that follows the desired MasterSpread.

MasterSpread nextItem( MasterSpread obj )

Returns the MasterSpread whose index follows the specified MasterSpread in the collection.

Parameters

TypeNameDescription
MasterSpread
obj
The MasterSpread whose index comes before the desired MasterSpread.

MasterSpread anyItem()

Returns any MasterSpread in the collection.


MasterSpread everyItem()

Returns every MasterSpread in the collection.


String toSource()

Generates a string which, if executed, will return the MasterSpread.


MasterSpread []( Number index )

Returns the MasterSpread with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.