Adobe InCopy CS5 (7.0) Object Model JS: HyperlinkTextDestination

InCopy CS5

Class

HyperlinkTextDestination

 

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

Superclass of ParagraphDestination

QuickLinks

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

Hierarchy

Document
HyperlinkTextDestination
ParagraphDestination
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
destinationTextInsertionPointText r/wThe text or insertion point that the hyperlink points to. Can also accept: Text.
eventListenersEventListeners readonlyA collection of event listeners.
eventsEvents readonlyA collection of events.
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

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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

Hyperlink.destination

Used in:

HyperlinkTextDestination HyperlinkTextDestinations.nextItem (obj: HyperlinkTextDestination)

HyperlinkTextDestination HyperlinkTextDestinations.previousItem (obj: HyperlinkTextDestination)

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: varies)

HyperlinkTextDestination HyperlinkTextDestinations.itemByID (id: number)

HyperlinkTextDestination HyperlinkTextDestinations.itemByName (name: string)

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

HyperlinkTextDestination HyperlinkTextDestinations.lastItem ()

HyperlinkTextDestination HyperlinkTextDestinations.middleItem ()

HyperlinkTextDestination HyperlinkTextDestinations.nextItem (obj: HyperlinkTextDestination)

HyperlinkTextDestination HyperlinkTextDestinations.previousItem (obj: HyperlinkTextDestination)

Jongware, 23-Mar-2011 v3.0.3dContents :: Index