Adobe InDesign CS4 (6.0) Object Model JS: HyperlinkTextDestination

InDesign CS4

Class

HyperlinkTextDestination

 

A hyperlink destination that is either text or an insertion point.

Superclass of ParagraphDestination

QuickLinks

extractLabel, getElements, insertLabel, remove, showDestination, toSource, toSpecifier

Hierarchy

Document
HyperlinkTextDestination
ParagraphDestination

Properties

PropertyTypeAccessDescription
destinationTextInsertionPointText r/wThe text or insertion point that the hyperlink points to. Can also accept: Text.
hiddenbool readonlyIf true, the hyperlink is hidden.
idnumber readonlyThe unique ID of the HyperlinkTextDestination.
indexnumber readonlyThe index of the HyperlinkTextDestination 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 HyperlinkTextDestination.
parentDocument readonlyThe parent of the HyperlinkTextDestination (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 HyperlinkTextDestination 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 HyperlinkTextDestination.

void showDestination ()
Jumps to the hyperlink destination.

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

string toSpecifier ()
Retrieves the object specifier.

Element of

Bookmark.destination

Hyperlink.destination

Used in:

Bookmark Bookmarks.add (destination: any[, withProperties: Object])

array of HyperlinkTextDestination HyperlinkTextDestinations.itemByRange (from: any, to: any)

HyperlinkTextDestination HyperlinkTextDestinations.nextItem (obj: HyperlinkTextDestination)

HyperlinkTextDestination HyperlinkTextDestinations.previousItem (obj: HyperlinkTextDestination)

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

Return

Array of HyperlinkTextDestination HyperlinkTextDestination.getElements ()

HyperlinkTextDestination HyperlinkTextDestinations.[] (index: number)

HyperlinkTextDestination HyperlinkTextDestinations.add (destination: Text[, withProperties: Object])

HyperlinkTextDestination HyperlinkTextDestinations.anyItem ()

Array of HyperlinkTextDestination HyperlinkTextDestinations.everyItem ()

HyperlinkTextDestination HyperlinkTextDestinations.firstItem ()

HyperlinkTextDestination HyperlinkTextDestinations.item (index: any)

HyperlinkTextDestination HyperlinkTextDestinations.itemByID (id: number)

HyperlinkTextDestination HyperlinkTextDestinations.itemByName (name: string)

Array of HyperlinkTextDestination HyperlinkTextDestinations.itemByRange (from: any, to: any)

HyperlinkTextDestination HyperlinkTextDestinations.lastItem ()

HyperlinkTextDestination HyperlinkTextDestinations.middleItem ()

HyperlinkTextDestination HyperlinkTextDestinations.nextItem (obj: HyperlinkTextDestination)

HyperlinkTextDestination HyperlinkTextDestinations.previousItem (obj: HyperlinkTextDestination)

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