Adobe InDesign CS4 (6.0) Object Model JS: Topic

InDesign CS4

Class

Topic

 An index topic.

QuickLinks

capitalize, getElements, remove, toSource, toSpecifier

Hierarchy

Index | IndexSection | Topic
Topic
CrossReference | PageReference | Topic

Properties

PropertyTypeAccessDescription
crossReferencesCrossReferences readonlyA collection of cross references.
indexnumber readonlyThe index of the Topic within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
namestring r/wThe name of the Topic.
pageReferencesPageReferences readonlyA collection of index page references.
parentIndexIndexSection
Topic
readonlyThe parent of the Topic (a IndexSection, Topic or Index).
propertiesObject r/wA property that allows setting of several properties at the same time.
sortOrderstring r/wThe string by which the topic is sorted instead of the topic name is not used. Note: The actual topic text, rather than the sort order text, appears in the index.
topicsTopics readonlyA collection of index topics.

Methods

Instances

void capitalize ([capitalizationOption: IndexCapitalizationOptions=IndexCapitalizationOptions.ALL_ENTRIES])
Makes the initial letter for the specified index topic or group of index topics upper case.

ParameterTypeDescription
capitalizationOptionIndexCapitalizationOptions:
IndexCapitalizationOptions.SELECTED_ENTRY
IndexCapitalizationOptions.INCLUDE_SUBENTRIES
IndexCapitalizationOptions.ALL_LEVEL_1_ENTRIES
IndexCapitalizationOptions.ALL_ENTRIES
The entry or entries to capitalize. (Optional) (default: IndexCapitalizationOptions.ALL_ENTRIES)

Array of Topic getElements ()
Resolves the object specifier, creating an array of object references.

void remove ()
Deletes the Topic.

string toSource ()
Generates a string which, if executed, will return the Topic.

string toSpecifier ()
Retrieves the object specifier.

Element of

CrossReference.parent

CrossReference.referencedTopic

Index.allTopics

IndexSection.allTopics

PageReference.parent

Topic.parent

Used in:

CrossReference CrossReferences.add (referencedTopic: Topic, crossReferenceType: CrossReferenceType[, customTypeString: string][, withProperties: Object])

array of Topic Topics.itemByRange (from: any, to: any)

Topic Topics.nextItem (obj: Topic)

Topic Topics.previousItem (obj: Topic)

Return

Array of Topic Topic.getElements ()

Topic Topics.[] (index: number)

Topic Topics.add (name: string[, sortBy: string][, withProperties: Object])

Topic Topics.anyItem ()

Array of Topic Topics.everyItem ()

Topic Topics.firstItem ()

Topic Topics.item (index: any)

Topic Topics.itemByName (name: string)

Array of Topic Topics.itemByRange (from: any, to: any)

Topic Topics.lastItem ()

Topic Topics.middleItem ()

Topic Topics.nextItem (obj: Topic)

Topic Topics.previousItem (obj: Topic)

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