Adobe InDesign CS4 (6.0) Object Model JS: ParagraphDestinations

InDesign CS4

Class

ParagraphDestinations

 A collection of paragraph destinations.

QuickLinks

[], add, 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

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

ParameterTypeDescription
indexnumberThe index.

ParagraphDestination add (destination: Text[, withProperties: Object])
Creates a new paragraph destination.

ParameterTypeDescription
destinationTextThe text or insertion point inside the paragraph that the cross reference points to. The insertion point is always adjusted to the beginning of the paragraph.
withPropertiesObjectInitial values for properties of the new ParagraphDestination (Optional)

ParagraphDestination anyItem ()
Returns any ParagraphDestination in the collection.

number count ()
Displays the number of elements in the ParagraphDestination.

Array of ParagraphDestination everyItem ()
Returns every ParagraphDestination in the collection.

ParagraphDestination firstItem ()
Returns the first ParagraphDestination in the collection.

ParagraphDestination item (index: any)
Returns the ParagraphDestination with the specified index or name.

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

Array of ParagraphDestination itemByRange (from: any, to: any)
Returns the ParagraphDestinations within the specified range.

ParameterTypeDescription
fromLong Integer
ParagraphDestination
String
The ParagraphDestination, index, or name at the beginning of the range. Can accept: ParagraphDestination, Long Integer or String.
toLong Integer
ParagraphDestination
String
The ParagraphDestination, index, or name at the end of the range. Can accept: ParagraphDestination, Long Integer or String.

ParagraphDestination lastItem ()
Returns the last ParagraphDestination in the collection.

ParagraphDestination middleItem ()
Returns the middle ParagraphDestination in the collection.

ParagraphDestination nextItem (obj: ParagraphDestination)
Returns the ParagraphDestination whose index follows the specified ParagraphDestination in the collection.

ParameterTypeDescription
objParagraphDestinationThe ParagraphDestination whose index comes before the desired ParagraphDestination.

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

ParameterTypeDescription
objParagraphDestinationThe index of the ParagraphDestination that follows the desired ParagraphDestination.

string toSource ()
Generates a string which, if executed, will return the ParagraphDestination.

Element of

Document.paragraphDestinations

Jongware, 20-Jun-2010 v3.0.3dContents :: Index