Adobe InDesign CS3 (5.0) Object Model JS: TextVariableInstance

InDesign CS3

Class

TextVariableInstance

 A text variable instance in the text.

QuickLinks

convertToText, extractLabel, getElements, insertLabel, remove, toSource, toSpecifier

Hierarchy

Cell | Change | Character | Footnote | InsertionPoint | Line | Note | Paragraph | Story | Table | Text | TextColumn | TextFrame | TextStyleRange | Word | XmlStory
TextVariableInstance

Properties

PropertyTypeAccessDescription
associatedTextVariableTextVariable r/wThe associated text variable.
idnumber readonlyThe unique ID of the TextVariableInstance.
indexnumber readonlyThe index of the TextVariableInstance within its containing object.
labelstring r/wA property that can be set to any string.
namestring readonlyThe name of the TextVariableInstance.
parentCellChange
Character
Footnote
InsertionPoint
Line
Note
Paragraph
Story
Table
Text
TextColumn
TextFrame
TextStyleRange
Word
XmlStory
readonlyThe parent of the TextVariableInstance (a XmlStory, TextFrame, Story, Note, Cell, Footnote, Table, TextColumn, TextStyleRange, Text, Paragraph, Line, Word, Character, InsertionPoint or Change).
propertiesObject r/wA property that allows setting of several properties at the same time.
resultTextstring readonlyThe text that replaces the variable marker. Note: This property cannot be set; it can be used only to update variables. .
storyOffsetInsertionPoint readonlyThe insertion point before the table in the story containing the table.

Methods

Instances

Text convertToText ()
Converts the footnote to part of the story text and places the converted text at the former location of the footnote marker in the text.

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

ParameterTypeDescription
keystringThe key.

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

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

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

string toSpecifier ()
Retrieves the object specifier.

Element of

TextVariable.associatedInstances

Used in:

TextVariableInstance TextVariableInstances.add ([to: LocationOptions=LocationOptions.UNKNOWN][, reference: any][, withProperties: Object])

array of TextVariableInstance TextVariableInstances.itemByRange (from: any, to: any)

TextVariableInstance TextVariableInstances.nextItem (obj: TextVariableInstance)

TextVariableInstance TextVariableInstances.previousItem (obj: TextVariableInstance)

Return

Array of TextVariableInstance TextVariableInstance.getElements ()

TextVariableInstance TextVariableInstances.add ([to: LocationOptions=LocationOptions.UNKNOWN][, reference: any][, withProperties: Object])

TextVariableInstance TextVariableInstances.anyItem ()

Array of TextVariableInstance TextVariableInstances.everyItem ()

TextVariableInstance TextVariableInstances.firstItem ()

TextVariableInstance TextVariableInstances.item (index: any)

TextVariableInstance TextVariableInstances.itemByID (id: number)

TextVariableInstance TextVariableInstances.itemByName (name: string)

Array of TextVariableInstance TextVariableInstances.itemByRange (from: any, to: any)

TextVariableInstance TextVariableInstances.lastItem ()

TextVariableInstance TextVariableInstances.middleItem ()

TextVariableInstance TextVariableInstances.nextItem (obj: TextVariableInstance)

TextVariableInstance TextVariableInstances.previousItem (obj: TextVariableInstance)

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