Indesign Scripting Reference
home | search | Links
JavaScript >> CharacterStyles

CharacterStyles

A collection of character styles.

CharacterStyles Properties

Property Type Access Description
item Object read Returns the character style with the specified index or name.
length Long read The number of character styles in the collection.

CharacterStyles Methods

Method Returns Description
add CharacterStyle Create a new character style.
anyItem Object Returns any character style.
firstItem Object Returns the first character style.
itemByID Object Returns the character style with the specified ID.
itemByRange Objects Returns the character styles within the specified range.
lastItem Object Returns the last character style.
middleItem Object Returns the middle character style.
nextItem Object Returns the next character style.
previousItem Object Returns the previous character style.