Topic

An index topic.

Methods:

capitalize, getElements, move, remove, toSource, toSpecifier

Objects:

CrossReferences, Number, Object, PageReferences, String, Topics

Property Listing

Property

Type

Access

Description

crossReferences

CrossReferences CrossReference

readonly

A collection of index cross references. (For cross references in text, use the 'cross reference source' and 'hyperlink' objects.)

index

Number

readonly

The index of the Topic within its containing object.

name

String

read/write

The name of the Topic.

pageReferences

PageReferences PageReference

readonly

A collection of index page references.

parent

Topic

Index

IndexSection

readonly

The parent of the Topic (a IndexSection, Topic or Index).

properties

Object

read/write

A property that allows setting of several properties at the same time.

sortOrder

String

read/write

The 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.

topics

Topics Topic

readonly

A collection of index topics.

Method Listing

undefined capitalize ([capitalizationOption:IndexCapitalizationOptions=IndexCapitalizationOptions])

Makes the initial letter for the specified index topic or group of index topics upper case.

Parameter

Type

Description

capitalizationOption

IndexCapitalizationOptions

IndexCapitalizationOptions.ALL_ENTRIES

IndexCapitalizationOptions.ALL_LEVEL_1_ENTRIES

IndexCapitalizationOptions.INCLUDE_SUBENTRIES

IndexCapitalizationOptions.SELECTED_ENTRY

The entry or entries to capitalize. (Optional)

(default: IndexCapitalizationOptions.ALL_ENTRIES)

Object getElements ()

Resolves the object specifier, creating an array of object references.

Topic move (to:Number)

Moves the topic to the specified location.

Parameter

Type

Description

to

Number

The location.

undefined remove ()

Deletes the Topic.

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

CrossReference.parent

PageReference.parent

Topic.parent

CrossReference.referencedTopic

Index.allTopics

IndexSection.allTopics

Return

Topics.add()

Topic.move()

Topics.anyItem()

Topics.everyItem()

Topics.nextItem()

Topics.previousItem()

Topics.item()

Topics.itemByName()

Topics.itemByRange()

Topics.firstItem()

Topics.lastItem()

Topics.middleItem()