Adobe InDesign CS (3.0) Object Model JS: Index

InDesign CS

Class

Index

 An index.

QuickLinks

capitalize, extractLabel, generate, importTopics, insertLabel, removeUnusedTopics, update

Hierarchy

Document
Index
Topic

Properties

PropertyTypeAccessDescription
idnumber readonlyThe unique ID of the Index.
indexnumber readonlyThe index of the Index within its containing object.
labelstring r/wA property that can be set to any string.
namestring r/wThe name of the Index.
parentDocument readonlyThe parent of the Index (a Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
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)

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

ParameterTypeDescription
keystringThe key.

Array of Story generate ([on: any][, placePoint: Array of Measurement Unit (Number or String)][, destinationLayer: Layer][, autoflowing: bool=false][, includeOverset: bool=false])
Generates a new index story.

ParameterTypeDescription
onMasterSpread
Page
Spread
The spread or page on which to place the story. Can accept: Page, Spread or MasterSpread. (Optional)
placePoint Array of Measurement Unit (Number or String)The coordinates of the upper left corner of the story bounding box, in the format [x, y]. (Optional)
destinationLayerLayerThe layer on which to place the story. (Optional)
autoflowingboolIf true, allows the story to flow onto subsequent pages if the story does not fit on the specified page. If no subsequent pages exist in the document, creates the necessary pages. (Optional) (default: false)
includeOversetboolIf true, includes topics in overset text in the story. (Optional) (default: false)

void importTopics (from: File)
Imports a list of index topics.

ParameterTypeDescription
fromFileThe file from which to import the topics.

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

ParameterTypeDescription
keystringThe key.
valuestringThe value.

void removeUnusedTopics ()
Removes all index topics that do not have any index entries.

void update ()
Updates the index preview pane. Note: Does not update the index.

Element of

Topic.parent

Return

Index Indexes.add ([withProperties: Object])

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