CharacterStyles
A collection of character styles.
Go to Property Listing | Method Listing
Methods:
[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
LongInteger |
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 |
The index. |
CharacterStyle add (withProperties:Object)
Creates a new CharacterStyle.
Parameter |
Type |
Description |
---|---|---|
withProperties |
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 |
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 |
The ID. |
CharacterStyle itemByName (name:String)
Returns the CharacterStyle with the specified name.
Parameter |
Type |
Description |
---|---|---|
name |
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 |
LongInteger |
The CharacterStyle, index, or name at the beginning of the range. Can accept: CharacterStyle, Long Integer or String. |
to |
LongInteger |
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 |
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 |
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