InDesign Server2025
API 20.5.0.49
Collection of CharStyleMapping

CharStyleMappings

A collection of char style mappings.

Properties

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

Methods

→ CharStyleMapping

Returns the CharStyleMapping with the specified index.

index Number The index.
→ CharStyleMapping

Adds a style mapping.

sourceStyleName String The source style name.
destinationStyleName String The destination style name.
mappingRuleType MapType The mapping type
withProperties? Object Initial values for properties of the new CharStyleMapping
→ Number

Displays the number of elements in the CharStyleMapping.

→ CharStyleMapping[]

Returns every CharStyleMapping in the collection.

→ CharStyleMapping

Returns the first CharStyleMapping in the collection.

→ CharStyleMapping

Returns the CharStyleMapping with the specified index or name.

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

Returns the CharStyleMappings within the specified range.

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

Returns the last CharStyleMapping in the collection.

→ CharStyleMapping

Returns the middle CharStyleMapping in the collection.

→ CharStyleMapping

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

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

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

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

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

Object of 4

Properties elsewhere that hold a CharStyleMappings.