Edit in GitHubLog an issue

Hyperlinks

A collection of hyperlinks.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Hyperlink add( Mixed hyperlinkSource, Mixed hyperlinkDestination, Object withProperties )

Creates a new hyperlink.

Parameters

TypeNameDescription
Mixed
hyperlinkSource
The hyperlinked object. Can accept: HyperlinkPageItemSource, HyperlinkTextSource or CrossReferenceSource.
Mixed
hyperlinkDestination
The destination that the hyperlink points to. Can accept: Ordered array containing fileName:String, volumn:String, directoryId:Long Integer, dataLinkClassId:Long Integer, destinationUid:Long Integer, HyperlinkTextDestination, HyperlinkPageDestination, HyperlinkExternalPageDestination, HyperlinkURLDestination or ParagraphDestination. (Optional)
Object
withProperties
Initial values for properties of the new Hyperlink (Optional)

Number count()

Displays the number of elements in the Hyperlink.


Hyperlink item( Mixed index )

Returns the Hyperlink with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

Hyperlink itemByName( String name )

Returns the Hyperlink with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Hyperlink itemByID( Number id )

Returns the Hyperlink with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Hyperlink itemByRange( Mixed from, Mixed to )

Returns the Hyperlinks within the specified range.

Parameters

TypeNameDescription
Mixed
from
The Hyperlink, index, or name at the beginning of the range. Can accept: Hyperlink, Long Integer or String.
Mixed
to
The Hyperlink, index, or name at the end of the range. Can accept: Hyperlink, Long Integer or String.

Hyperlink firstItem()

Returns the first Hyperlink in the collection.


Hyperlink lastItem()

Returns the last Hyperlink in the collection.


Hyperlink middleItem()

Returns the middle Hyperlink in the collection.


Hyperlink previousItem( Hyperlink obj )

Returns the Hyperlink with the index previous to the specified index.

Parameters

TypeNameDescription
Hyperlink
obj
The index of the Hyperlink that follows the desired Hyperlink.

Hyperlink nextItem( Hyperlink obj )

Returns the Hyperlink whose index follows the specified Hyperlink in the collection.

Parameters

TypeNameDescription
Hyperlink
obj
The Hyperlink whose index comes before the desired Hyperlink.

Hyperlink anyItem()

Returns any Hyperlink in the collection.


Hyperlink everyItem()

Returns every Hyperlink in the collection.


String toSource()

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


Hyperlink []( Number index )

Returns the Hyperlink with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.