InDesign Server2025
API 20.5.0.49
Collection of CellStyle

CellStyles

A collection of cell styles.

Properties

NameType AccessDescription
LongInteger | NothingEnum
readonly The number of objects in the collection. Can return: Long Integer or NothingEnum enumerator.

Methods

→ CellStyle

Returns the CellStyle with the specified index.

index Number The index.
→ CellStyle

Creates a new CellStyle.

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

Returns any CellStyle in the collection.

→ Number

Displays the number of elements in the CellStyle.

→ CellStyle[]

Returns every CellStyle in the collection.

→ CellStyle

Returns the first CellStyle in the collection.

→ CellStyle

Returns the CellStyle with the specified index or name.

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

Returns the CellStyle with the specified ID.

id Number The ID.
→ CellStyle

Returns the CellStyle with the specified name.

name String The name.
→ CellStyle[]

Returns the CellStyles within the specified range.

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

Returns the last CellStyle in the collection.

→ CellStyle

Returns the middle CellStyle in the collection.

→ CellStyle

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

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

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

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

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

Object of 3

Properties elsewhere that hold a CellStyles.