A collection of nested styles.
Methods
NestedStyleadd ([withProperties:
Object])
Creates a new NestedStyle.
| Parameter | Type | Description |
|---|---|---|
| withProperties | Object | Initial values for properties of the new NestedStyle (Optional) |
NestedStyleanyItem ()
Returns any NestedStyle in the collection.
number count ()
Displays the number of elements in the NestedStyle.
Array of NestedStyleeveryItem ()
Returns every NestedStyle in the collection.
NestedStylefirstItem ()
Returns the first NestedStyle in the collection.
NestedStyleitem (index:
any)
Returns the NestedStyle with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
NestedStyleitemByName (name:
string)
Returns the NestedStyle with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of NestedStyleitemByRange (from:
any, to:
any)
Returns the NestedStyles within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | NestedStyle Long Integer String |
The NestedStyle, index, or name at the beginning of the range. Can accept: NestedStyle, Long Integer or String. |
| to | NestedStyle Long Integer String |
The NestedStyle, index, or name at the end of the range. Can accept: NestedStyle, Long Integer or String. |
NestedStylelastItem ()
Returns the last NestedStyle in the collection.
NestedStylemiddleItem ()
Returns the middle NestedStyle in the collection.
NestedStylenextItem (obj:
NestedStyle)
Returns the NestedStyle whose index follows the specified NestedStyle in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | NestedStyle | The NestedStyle whose index comes before the desired NestedStyle. |
NestedStylepreviousItem (obj:
NestedStyle)
Returns the NestedStyle with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | NestedStyle | The index of the NestedStyle that follows the desired NestedStyle. |
string toSource ()
Generates a string which, if executed, will return the NestedStyle.
Element of:
Character.nestedStyles
InsertionPoint.nestedStyles
Line.nestedStyles
Paragraph.nestedStyles
ParagraphStyle.nestedStyles
Story.nestedStyles
Text.nestedStyles
TextColumn.nestedStyles
TextDefault.nestedStyles
TextStyleRange.nestedStyles
Word.nestedStyles