InDesign2026
API 21.5.1.73
Collection of ParagraphStyle

ParagraphStyles

A collection of paragraph styles.

Properties

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

Methods

→ ParagraphStyle

Returns the ParagraphStyle with the specified index.

index Number The index.
→ ParagraphStyle

Creates a new ParagraphStyle.

withProperties? Object Initial values for properties of the new ParagraphStyle
→ ParagraphStyle

Returns any ParagraphStyle in the collection.

→ Number

Displays the number of elements in the ParagraphStyle.

→ ParagraphStyle[]

Returns every ParagraphStyle in the collection.

→ ParagraphStyle

Returns the first ParagraphStyle in the collection.

→ ParagraphStyle

Returns the ParagraphStyle with the specified index or name.

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

Returns the ParagraphStyle with the specified ID.

id Number The ID.
→ ParagraphStyle

Returns the ParagraphStyle with the specified name.

name String The name.
→ ParagraphStyle[]

Returns the ParagraphStyles within the specified range.

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

Returns the last ParagraphStyle in the collection.

→ ParagraphStyle

Returns the middle ParagraphStyle in the collection.

→ ParagraphStyle

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

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

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

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

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

Object of 3

Properties elsewhere that hold a ParagraphStyles.