Adobe InDesign CS4 (6.0) Object Model JS: CrossReferenceSource

InDesign CS4

Class

CrossReferenceSource

 A cross reference text source object. Base Class: HyperlinkTextSource

QuickLinks

extractLabel, getElements, insertLabel, remove, showSource, toSource, toSpecifier, update

Hierarchy

Document
HyperlinkTextSource
CrossReferenceSource

Properties

PropertyTypeAccessDescription
appliedCharacterStyleCharacterStyle r/wCharacter style of the hyperlink text source.
appliedFormatCrossReferenceFormat r/wFormat used for cross reference source.
hiddenbool readonlyIf true, the hyperlink is hidden.
idnumber readonlyThe unique ID of the CrossReferenceSource.
indexnumber readonlyThe index of the CrossReferenceSource 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 CrossReferenceSource.
parentDocument readonlyThe parent of the CrossReferenceSource (a Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
sourceTextText r/wThe hyperlinked text or insertion point.

Methods

Instances

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

ParameterTypeDescription
keystringThe key.

Array of CrossReferenceSource 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 CrossReferenceSource.

void showSource ()
Jumps to the hyperlink source.

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

string toSpecifier ()
Retrieves the object specifier.

void update ()
Updates cross reference text source content.

Element of

Hyperlink.source

Used in:

array of CrossReferenceSource CrossReferenceSources.itemByRange (from: any, to: any)

CrossReferenceSource CrossReferenceSources.nextItem (obj: CrossReferenceSource)

CrossReferenceSource CrossReferenceSources.previousItem (obj: CrossReferenceSource)

Hyperlink Hyperlinks.add (hyperlinkSource: any[, hyperlinkDestination: any][, withProperties: Object])

Return

Array of CrossReferenceSource CrossReferenceSource.getElements ()

CrossReferenceSource CrossReferenceSources.[] (index: number)

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

CrossReferenceSource CrossReferenceSources.anyItem ()

Array of CrossReferenceSource CrossReferenceSources.everyItem ()

CrossReferenceSource CrossReferenceSources.firstItem ()

CrossReferenceSource CrossReferenceSources.item (index: any)

CrossReferenceSource CrossReferenceSources.itemByID (id: number)

CrossReferenceSource CrossReferenceSources.itemByName (name: string)

Array of CrossReferenceSource CrossReferenceSources.itemByRange (from: any, to: any)

CrossReferenceSource CrossReferenceSources.lastItem ()

CrossReferenceSource CrossReferenceSources.middleItem ()

CrossReferenceSource CrossReferenceSources.nextItem (obj: CrossReferenceSource)

CrossReferenceSource CrossReferenceSources.previousItem (obj: CrossReferenceSource)

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