InDesign Server2025
API 20.5.0.49
Collection of Paragraph

Paragraphs

A collection of paragraphs.

Properties

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

Methods

→ Paragraph

Returns the Paragraph with the specified index.

index Number The index.
→ Paragraph

Returns any Paragraph in the collection.

→ Number

Displays the number of elements in the Paragraph.

→ Paragraph[]

Returns every Paragraph in the collection.

→ Paragraph

Returns the first Paragraph in the collection.

→ Paragraph

Returns the Paragraph with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ Paragraph[]

Returns the Paragraphs within the specified range.

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

Returns the last Paragraph in the collection.

→ Paragraph

Returns the middle Paragraph in the collection.

→ Paragraph

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

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

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

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

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

Object of 19

Properties elsewhere that hold a Paragraphs.