Instance Properties
| Name | Description | Access |
|---|---|---|
| length | number The number of objects in the collection. | read-only |
Methods
| add( | [styleName] [, withProperties]) |
→ TOCStyleEntry |
| anyItem( | ) |
→ TOCStyleEntry |
| count( | ) |
→ number |
| everyItem( | ) |
→ TOCStyleEntry |
| firstItem( | ) |
→ TOCStyleEntry |
| item( | index) |
→ TOCStyleEntry |
| itemByName( | name) |
→ TOCStyleEntry |
| itemByRange( | from, to) |
→ TOCStyleEntry |
| lastItem( | ) |
→ TOCStyleEntry |
| middleItem( | ) |
→ TOCStyleEntry |
| nextItem( | obj) |
→ TOCStyleEntry |
| previousItem( | obj) |
→ TOCStyleEntry |
| toSource( | ) |
→ string |
-
add( [styleName] [, withProperties])→ TOCStyleEntry -
Adds a TOC style entry.
styleNamestring The paragraph style to include as TOC entries in the TOC. (Optional) withPropertiesObject Initial values for properties of the new TOCStyleEntry (Optional) -
anyItem( )→ TOCStyleEntry -
Returns any TOCStyleEntry in the collection.
-
count( )→ number -
Displays the number of elements in the TOCStyleEntry.
-
everyItem( )→ TOCStyleEntry -
Returns every TOCStyleEntry in the collection.
-
firstItem( )→ TOCStyleEntry -
Returns the first TOCStyleEntry in the collection.
-
item( index)→ TOCStyleEntry -
Returns the TOCStyleEntry with the specified index or name.
indexThe index or name. Can accept: Long Integer or String. -
itemByName( name)→ TOCStyleEntry -
Returns the TOCStyleEntry with the specified name.
namestring The name. -
itemByRange( from, to)→ TOCStyleEntry -
Returns the TOCStyleEntries within the specified range.
fromThe TOCStyleEntry, index, or name at the beginning of the range. Can accept: TOCStyleEntry, Long Integer or String. toThe TOCStyleEntry, index, or name at the end of the range. Can accept: TOCStyleEntry, Long Integer or String. -
lastItem( )→ TOCStyleEntry -
Returns the last TOCStyleEntry in the collection.
-
middleItem( )→ TOCStyleEntry -
Returns the middle TOCStyleEntry in the collection.
-
nextItem( obj)→ TOCStyleEntry -
Returns the TOCStyleEntry whose index follows the specified TOCStyleEntry in the collection.
objTOCStyleEntry The TOCStyleEntry whose index comes before the desired TOCStyleEntry. -
previousItem( obj)→ TOCStyleEntry -
Returns the TOCStyleEntry with the index previous to the specified index.
objTOCStyleEntry The index of the TOCStyleEntry that follows the desired TOCStyleEntry. -
toSource( )→ string -
Generates a string which, if executed, will return the TOCStyleEntry.