Adobe InDesign CS (3.0) Object Model JS: TOCStyle

InDesign CS

Class

TOCStyle

 A TOC style definition.

QuickLinks

duplicate, extractLabel, insertLabel, remove

Hierarchy

Application | Document
TOCStyle
TOCStyleEntry

Properties

PropertyTypeAccessDescription
idnumber readonlyThe unique ID of the TOCStyle.
includeBookDocumentsbool r/wIf 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.
includeHiddenbool r/wIf true, the TOC includes entries from text on hidden layers.
indexnumber readonlyThe index of the TOCStyle within its containing object.
labelstring r/wA property that can be set to any string.
namestring r/wThe name of the TOCStyle.
parentApplicationDocument readonlyThe parent of the TOCStyle (a Document or Application).
propertiesObject r/wA property that allows setting of several properties at the same time.
runInbool r/wIf true, the lowest-level TOC entries are placed on the same line as the previous entry.
titlestring r/wThe TOC title.
titleStyleParagraphStyle r/wThe paragraph style applied to the TOC title.
tocStyleEntriesTOCStyleEntries readonlyA collection TOC style entries.

Methods

Instances

TOCStyle duplicate ()
Duplicates the TOCStyle.

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

void remove ()
Deletes the TOCStyle.

Element of

TOCStyleEntry.parent

Used in:

TextFrame Document.createTOC (using: TOCStyle[, replacing: bool=false][, fromBook: Book][, placePoint: Array of Measurement Unit (Number or String)][, includeOverset: bool=false][, destinationLayer: Layer])

Return

TOCStyle TOCStyle.duplicate ()

TOCStyle TOCStyles.add ([withProperties: Object])

Jongware, 27-Jun-2010 v3.0.3dContents :: Index