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