InDesign Server2025
API 20.5.0.49
Collection of Link

Links

A collection of links.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ Link

Returns the Link with the specified index.

index Number The index.
→ Link

Returns any Link in the collection.

→ Number

Displays the number of elements in the Link.

→ Link[]

Returns every Link in the collection.

→ Link

Returns the first Link in the collection.

→ Link

Returns the Link with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ Link

Returns the Link with the specified ID.

id Number The ID.
→ Link

Returns the Link with the specified name.

name String The name.
→ Link[]

Returns the Links within the specified range.

from Link | LongInteger | String The Link, index, or name at the beginning of the range. Can accept: Link, Long Integer or String.
to Link | LongInteger | String The Link, index, or name at the end of the range. Can accept: Link, Long Integer or String.
→ Link

Returns the last Link in the collection.

→ Link

Returns the middle Link in the collection.

→ Link

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

obj Link The Link whose index comes before the desired Link.
→ Link

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

obj Link The index of the Link that follows the desired Link.
→ String

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

Object of 2

Properties elsewhere that hold a Links.