Adobe InDesign CS4 (6.0) Object Model JS: CrossReferenceFormat

InDesign CS4

Class

CrossReferenceFormat

 A cross reference format object.

QuickLinks

extractLabel, getElements, insertLabel, remove, toSource, toSpecifier

Hierarchy

Document
CrossReferenceFormat
BuildingBlock

Properties

PropertyTypeAccessDescription
appliedCharacterStyleCharacterStyle r/wCharacter style of the cross reference format.
buildingBlocksBuildingBlocks readonlyA collection of cross reference building blocks.
idnumber readonlyThe unique ID of the CrossReferenceFormat.
indexnumber readonlyThe index of the CrossReferenceFormat within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
labelstring r/wA property that can be set to any string.
namestring r/wThe name of the CrossReferenceFormat.
parentDocument readonlyThe parent of the CrossReferenceFormat (a Document).
propertiesObject r/wA property that allows setting of several properties at the same time.

Methods

Instances

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

Array of CrossReferenceFormat getElements ()
Resolves the object specifier, creating an array of object references.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

void remove ()
Deletes the CrossReferenceFormat.

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

string toSpecifier ()
Retrieves the object specifier.

Element of

BuildingBlock.parent

CrossReferenceSource.appliedFormat

Used in:

array of CrossReferenceFormat CrossReferenceFormats.itemByRange (from: any, to: any)

CrossReferenceFormat CrossReferenceFormats.nextItem (obj: CrossReferenceFormat)

CrossReferenceFormat CrossReferenceFormats.previousItem (obj: CrossReferenceFormat)

CrossReferenceSource CrossReferenceSources.add (source: Text, appliedFormat: CrossReferenceFormat[, withProperties: Object])

Return

Array of CrossReferenceFormat CrossReferenceFormat.getElements ()

CrossReferenceFormat CrossReferenceFormats.[] (index: number)

CrossReferenceFormat CrossReferenceFormats.add ([name: string][, withProperties: Object])

CrossReferenceFormat CrossReferenceFormats.anyItem ()

Array of CrossReferenceFormat CrossReferenceFormats.everyItem ()

CrossReferenceFormat CrossReferenceFormats.firstItem ()

CrossReferenceFormat CrossReferenceFormats.item (index: any)

CrossReferenceFormat CrossReferenceFormats.itemByID (id: number)

CrossReferenceFormat CrossReferenceFormats.itemByName (name: string)

Array of CrossReferenceFormat CrossReferenceFormats.itemByRange (from: any, to: any)

CrossReferenceFormat CrossReferenceFormats.lastItem ()

CrossReferenceFormat CrossReferenceFormats.middleItem ()

CrossReferenceFormat CrossReferenceFormats.nextItem (obj: CrossReferenceFormat)

CrossReferenceFormat CrossReferenceFormats.previousItem (obj: CrossReferenceFormat)

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