CharacterStyle

A named style that remembers character attributes.

Methods:

add, applyTo, clear, remove, removeAll

Objects:

CharacterAttributes, String

Property Listing

Property

Type

Access

Description

characterAttributes

CharacterAttributes

readonly

The character properties for the text range.

name

String

read/write

The character style's name.

parent

 

readonly

The object's container.

typename

String

readonly

The class name of the object.

Method Listing

CharacterStyle add ()

Adds an element.

undefined applyTo (textItem:Varies, [clearingOverrides:Boolean=Boolean])

Apply the character style to text object(s)

Parameter

Type

Description

textItem

Varies

The text object(s) to apply the style to.

clearingOverrides

Boolean

Whether to clear any text attributes before apply the style.

(default: false)

undefined clear ()

Remove all the attributes from this character style.

undefined remove ()

Deletes this object.

undefined removeAll ()

Deletes all elements.

Return

CharacterStyle.add()

CharacterStyles.add()

CharacterStyles.getByName()