TOCStyle
A TOC style definition.
Go to Property Listing | Method Listing
Methods:
addEventListener, duplicate, extractLabel, getElements, insertLabel, remove, removeEventListener, toSource, toSpecifier
Objects:
Boolean, EventListeners, Events, HorizontalOrVertical, Number, NumberedParagraphsOptions, Object, ParagraphStyle, String, TOCStyleEntries
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
read/write |
If true, creates bookmarks for TOC entries. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The unique ID of the TOCStyle. |
||
read/write |
If true, includes the entire book in the TOC. If false, includes only the TOC entries in the current document. Note: Valid when the current document is part of a book. |
||
read/write |
If true, the TOC includes entries from text on hidden layers. |
||
readonly |
The index of the TOCStyle within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
A property that can be set to any string. |
||
read/write |
If true, make text anchor in source paragraph. |
||
read/write |
The name of the TOCStyle. |
||
read/write |
The format for importing numbered paragraphs into the TOC. |
||
readonly |
The parent of the TOCStyle (a Document). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
read/write |
If true, remove forced line breaks. |
||
read/write |
If true, the lowest-level TOC entries are placed on the same line as the previous entry. |
||
read/write |
The table of contents story direction. |
||
read/write |
The TOC title. |
||
read/write |
The paragraph style applied to the TOC title. |
||
readonly |
A collection TOC style entries. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
TOCStyle duplicate ()
Duplicates the TOCStyle.
String extractLabel (key:String)
Gets the label value associated with the specified key.
Parameter |
Type |
Description |
---|---|---|
key |
The key. |
TOCStyle getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined remove ()
Deletes the TOCStyle.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the TOCStyle.
String toSpecifier ()
Retrieves the object specifier.
Object of
Event.parent
EventListener.parent
MutationEvent.parent
TOCStyleEntry.parent