InDesign2026
API 21.5.1.73
Object

CrossReferenceSource

A cross reference text source object.

HyperlinkTextSource CrossReferenceSource
Hierarchy

Document

CrossReferenceSource

Properties

NameType AccessDescription
CharacterStyle read/write Character style of the hyperlink text source.
CrossReferenceFormat read/write Format used for cross reference source.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Boolean readonly If true, the hyperlink is hidden.
Number readonly The unique ID of the CrossReferenceSource.
Number readonly The index of the CrossReferenceSource within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String read/write A property that can be set to any string.
String read/write The name of the CrossReferenceSource.
Document readonly The parent of the CrossReferenceSource (a Document).
Object read/write A property that allows setting of several properties at the same time.
Text read/write The hyperlinked text or insertion point.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

Gets the label value associated with the specified key.

key String The key.
CrossReferenceSource[]

Resolves the object specifier, creating an array of object references.

void

Sets the label to the value associated with the specified key.

key String The key.
value String The value.
void

Deletes the CrossReferenceSource.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
void

Jumps to the hyperlink source.

String

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

String

Retrieves the object specifier.

void

Updates cross reference text source content.

Object of 4

Properties elsewhere that hold a CrossReferenceSource.

Parameter of 4

Method parameters that accept a CrossReferenceSource.

Return 14

Methods that return a CrossReferenceSource.