Adobe Illustrator CS5 Type Library JS: CharacterStyle

Illustrator CS5

Class

CharacterStyle

 A named style that remembers character attributes.

QuickLinks

add, applyTo, remove, removeAll

Hierarchy

Object
CharacterStyle

Properties

PropertyTypeAccessDescription
characterAttributesCharacterAttributes readonlyThe character properties for the text range.
namestring r/wThe character style's name.
parentObject readonlyThe object's container.
typenamestring readonlyThe class name of the object.

Methods

Instances

CharacterStyle add ()
Adds an element.

void applyTo (textItem: any[, clearingOverrides: bool=false])
Apply the character style to text object(s)

ParameterTypeDescription
textItem any The text object(s) to apply the style to.
clearingOverridesboolWhether to clear any text attributes before apply the style. (default: false) (Optional)

void remove ()
Deletes this object.

void removeAll ()
Deletes all elements.

Return

CharacterStyle CharacterStyle.add ()

CharacterStyle CharacterStyles.add (name: string)

CharacterStyle CharacterStyles.getByName (name: string)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index