InDesign Server2025
API 20.5.0.49
Collection of CharacterStyleGroup

CharacterStyleGroups

A collection of character style groups.

Properties

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

Methods

→ CharacterStyleGroup

Creates a new CharacterStyleGroup.

withProperties? Object Initial values for properties of the new CharacterStyleGroup
→ Number

Displays the number of elements in the CharacterStyleGroup.

→ CharacterStyleGroup

Returns the CharacterStyleGroup with the specified index or name.

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

Returns the CharacterStyleGroups within the specified range.

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

Returns the middle CharacterStyleGroup in the collection.

→ CharacterStyleGroup

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

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

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

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

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

Object of 3

Properties elsewhere that hold a CharacterStyleGroups.