Adobe Illustrator CS5 Type Library JS: CharacterStyle
From Illustrator CS5
Class
CharacterStyle
A named style that remembers character attributes.QuickLinks
add, applyTo, remove, removeAllHierarchy
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| characterAttributes | CharacterAttributes | readonly | The character properties for the text range. |
| name | string | r/w | The character style's name. |
| parent | Object | readonly | The object's container. |
| typename | string | readonly | The 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)
| Parameter | Type | Description |
|---|---|---|
| textItem | any | The text object(s) to apply the style to. |
| clearingOverrides | bool | Whether 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.3d | Contents :: Index |