TextNestedStyles

A collection of nested styles.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

add(
[withProperties])
 → NestedStyle
anyItem(
)
 → NestedStyle
count(
)
 → number
item(
index)
 → NestedStyle
itemByRange(
from, to)
 → NestedStyle
nextItem(
obj)
 → NestedStyle
toSource(
)
 → string
add(
[withProperties])
 → NestedStyle
Creates a new NestedStyle.
withProperties Object Initial values for properties of the new NestedStyle (Optional)
anyItem(
)
 → NestedStyle
Returns any NestedStyle in the collection.
count(
)
 → number
Displays the number of elements in the NestedStyle.
everyItem(
)
 → NestedStyle
Returns every NestedStyle in the collection.
firstItem(
)
 → NestedStyle
Returns the first NestedStyle in the collection.
item(
index)
 → NestedStyle
Returns the NestedStyle with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByRange(
from, to)
 → NestedStyle
Returns the NestedStyles within the specified range.
from The NestedStyle, index, or name at the beginning of the range. Can accept: NestedStyle, Long Integer or String.
to The NestedStyle, index, or name at the end of the range. Can accept: NestedStyle, Long Integer or String.
lastItem(
)
 → NestedStyle
Returns the last NestedStyle in the collection.
middleItem(
)
 → NestedStyle
Returns the middle NestedStyle in the collection.
nextItem(
obj)
 → NestedStyle
Returns the NestedStyle whose index follows the specified NestedStyle in the collection.
obj NestedStyle The NestedStyle whose index comes before the desired NestedStyle.
previousItem(
obj)
 → NestedStyle
Returns the NestedStyle with the index previous to the specified index.
obj NestedStyle The index of the NestedStyle that follows the desired NestedStyle.
toSource(
)
 → string
Generates a string which, if executed, will return the NestedStyle.