Table Of_ContentsTOCStyles

A collection of TOC styles.

Instance Properties

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

Methods

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