InDesign2026
API 21.5.1.73
Collection of Bookmark

Bookmarks

A collection of bookmarks.

Properties

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

Methods

Bookmark

Returns the Bookmark with the specified index.

index Number The index.
Bookmark

Returns any Bookmark in the collection.

Number

Displays the number of elements in the Bookmark.

Bookmark[]

Returns every Bookmark in the collection.

Bookmark

Returns the first Bookmark in the collection.

Bookmark

Returns the Bookmark with the specified index or name.

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

Returns the Bookmark with the specified ID.

id Number The ID.
Bookmark

Returns the Bookmark with the specified name.

name String The name.
Bookmark[]

Returns the Bookmarks within the specified range.

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

Returns the last Bookmark in the collection.

Bookmark

Returns the middle Bookmark in the collection.

Bookmark

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

obj Bookmark The Bookmark whose index comes before the desired Bookmark.
Bookmark

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

obj Bookmark The index of the Bookmark that follows the desired Bookmark.
String

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

Object of 2

Properties elsewhere that hold a Bookmarks.