CharacterStyles

A collection of character styles.

Methods:

[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

LongInteger

NothingEnum.NOTHING

readonly

The number of objects in the collection. Can return: Long Integer or NothingEnum enumerator.

Method Listing

CharacterStyle [] (index:Number)

Returns the CharacterStyle with the specified index.

Parameter

Type

Description

index

Number

The index.

CharacterStyle add (withProperties:Object)

Creates a new CharacterStyle.

Parameter

Type

Description

withProperties

Object

Initial values for properties of the new CharacterStyle (Optional)

CharacterStyle anyItem ()

Returns any CharacterStyle in the collection.

Number count ()

Displays the number of elements in the CharacterStyle.

CharacterStyle everyItem ()

Returns every CharacterStyle in the collection.

CharacterStyle firstItem ()

Returns the first CharacterStyle in the collection.

CharacterStyle item (index:Varies LongInteger String)

Returns the CharacterStyle with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

The index or name. Can accept: Long Integer or String.

CharacterStyle itemByID (id:Number)

Returns the CharacterStyle with the specified ID.

Parameter

Type

Description

id

Number

The ID.

CharacterStyle itemByName (name:String)

Returns the CharacterStyle with the specified name.

Parameter

Type

Description

name

String

The name.

CharacterStyle itemByRange (from:Varies CharacterStyle LongInteger String, to:Varies CharacterStyle LongInteger String)

Returns the CharacterStyles within the specified range.

Parameter

Type

Description

from

CharacterStyle

LongInteger

String

The CharacterStyle, index, or name at the beginning of the range. Can accept: CharacterStyle, Long Integer or String.

to

CharacterStyle

LongInteger

String

The CharacterStyle, index, or name at the end of the range. Can accept: CharacterStyle, Long Integer or String.

CharacterStyle lastItem ()

Returns the last CharacterStyle in the collection.

CharacterStyle middleItem ()

Returns the middle CharacterStyle in the collection.

CharacterStyle nextItem (obj:CharacterStyle)

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

Parameter

Type

Description

obj

CharacterStyle

The CharacterStyle whose index comes before the desired CharacterStyle.

CharacterStyle previousItem (obj:CharacterStyle)

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

Parameter

Type

Description

obj

CharacterStyle

The index of the CharacterStyle that follows the desired CharacterStyle.

String toSource ()

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

Object of

Application.characterStyles

Document.characterStyles

CharacterStyleGroup.characterStyles