InDesign2026
API 21.5.1.73
Collection of Story

Stories

A collection of stories.

Properties

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

Methods

→ Story

Returns the Story with the specified index.

index Number The index.
→ Story

Returns any Story in the collection.

→ Number

Displays the number of elements in the Story.

→ Story[]

Returns every Story in the collection.

→ Story

Returns the first Story in the collection.

→ Story

Returns the Story with the specified index or name.

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

Returns the Story with the specified ID.

id Number The ID.
→ Story

Returns the Story with the specified name.

name String The name.
→ Story[]

Returns the Stories within the specified range.

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

Returns the last Story in the collection.

→ Story

Returns the middle Story in the collection.

→ Story

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

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

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

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

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

Object of 2

Properties elsewhere that hold a Stories.