A collection of character style groups.
Methods
CharacterStyleGroupadd ([withProperties:
Object])
Creates a new CharacterStyleGroup.
| Parameter | Type | Description |
|---|---|---|
| withProperties | Object | Initial values for properties of the new CharacterStyleGroup (Optional) |
CharacterStyleGroupanyItem ()
Returns any CharacterStyleGroup in the collection.
number count ()
Displays the number of elements in the CharacterStyleGroup.
Array of CharacterStyleGroupeveryItem ()
Returns every CharacterStyleGroup in the collection.
CharacterStyleGroupfirstItem ()
Returns the first CharacterStyleGroup in the collection.
CharacterStyleGroupitem (index:
any)
Returns the CharacterStyleGroup with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
CharacterStyleGroupitemByID (id:
number)
Returns the CharacterStyleGroup with the specified ID.
| Parameter | Type | Description |
|---|---|---|
| id | number | The ID. |
CharacterStyleGroupitemByName (name:
string)
Returns the CharacterStyleGroup with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of CharacterStyleGroupitemByRange (from:
any, to:
any)
Returns the CharacterStyleGroups within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | CharacterStyleGroup Long Integer String |
The CharacterStyleGroup, index, or name at the beginning of the range. Can accept: CharacterStyleGroup, Long Integer or String. |
| to | CharacterStyleGroup Long Integer String |
The CharacterStyleGroup, index, or name at the end of the range. Can accept: CharacterStyleGroup, Long Integer or String. |
CharacterStyleGrouplastItem ()
Returns the last CharacterStyleGroup in the collection.
CharacterStyleGroupmiddleItem ()
Returns the middle CharacterStyleGroup in the collection.
CharacterStyleGroupnextItem (obj:
CharacterStyleGroup)
Returns the CharacterStyleGroup whose index follows the specified CharacterStyleGroup in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | CharacterStyleGroup | The CharacterStyleGroup whose index comes before the desired CharacterStyleGroup. |
CharacterStyleGrouppreviousItem (obj:
CharacterStyleGroup)
Returns the CharacterStyleGroup with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | CharacterStyleGroup | The index of the CharacterStyleGroup that follows the desired CharacterStyleGroup. |
string toSource ()
Generates a string which, if executed, will return the CharacterStyleGroup.
Element of:
Application.characterStyleGroups
CharacterStyleGroup.characterStyleGroups
Document.characterStyleGroups