Adds an event listener.
Object
TextVariableInstance
A text variable instance in the text.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| TextVariable | read/write | The associated text variable. | |
| EventListeners |
readonly | A collection of event listeners. | |
| Events |
readonly | A collection of events. | |
| Number | readonly | The unique ID of the TextVariableInstance. | |
| Number | readonly | The index of the TextVariableInstance within its containing object. | |
| Boolean | readonly | Returns true if the object specifier resolves to valid objects. | |
| String | read/write | A property that can be set to any string. | |
| String | readonly | The name of the TextVariableInstance. | |
| Cell | EndnoteTextFrame | Footnote | Note | Story | TextFrame | Change | XmlStory | readonly | The parent of the TextVariableInstance (a XmlStory, TextFrame, EndnoteTextFrame, Story, Note, Cell, Footnote or Change). | |
| Object | read/write | A property that allows setting of several properties at the same time. | |
| String | readonly | The text that replaces the variable marker. Note: This property cannot be set; it can be used only to update variables. . | |
| InsertionPoint | readonly | The insertion point before the table in the story containing the table. |
Methods
→ Text
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
Gets the label value associated with the specified key.
Resolves the object specifier, creating an array of object references.
→ void
Sets the label to the value associated with the specified key.
→ void
Deletes the TextVariableInstance.
→ Boolean
Removes the event listener.
→ String
Generates a string which, if executed, will return the TextVariableInstance.
→ String
Retrieves the object specifier.
Object of 4
Properties elsewhere that hold a TextVariableInstance.
Parameter of 4
Method parameters that accept a TextVariableInstance.
Return 14
Methods that return a TextVariableInstance.
TextVariableInstance.getElements()TextVariableInstances.[]()TextVariableInstances.add()TextVariableInstances.anyItem()TextVariableInstances.everyItem()TextVariableInstances.firstItem()TextVariableInstances.item()TextVariableInstances.itemByID()TextVariableInstances.itemByName()TextVariableInstances.itemByRange()TextVariableInstances.lastItem()TextVariableInstances.middleItem()TextVariableInstances.nextItem()TextVariableInstances.previousItem()