InDesign2026
API 21.5.1.73
Collection of BookContent

BookContents

A collection of book content objects.

Properties

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

Methods

BookContent

Returns the BookContent with the specified index.

index Number The index.
BookContent

Creates a new book content object.

fullName File The full path name of the new book content object.
at? Number The location of the book content object within the book.
withProperties? Object Initial values for properties of the new BookContent
BookContent

Returns any BookContent in the collection.

Number

Displays the number of elements in the BookContent.

BookContent[]

Returns every BookContent in the collection.

BookContent

Returns the first BookContent in the collection.

BookContent

Returns the BookContent with the specified index or name.

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

Returns the BookContent with the specified ID.

id Number The ID.
BookContent

Returns the BookContent with the specified name.

name String The name.
BookContent[]

Returns the BookContents within the specified range.

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

Returns the last BookContent in the collection.

BookContent

Returns the middle BookContent in the collection.

BookContent

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

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

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

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

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

Object of 1

Properties elsewhere that hold a BookContents.