TextVariable
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
associatedInstances | Array of TextVariableInstance | readonly | Variable instances associated with the text variable. |
eventListeners | EventListeners | readonly | A collection of event listeners. |
events | Events | readonly | A collection of events. |
index | number | readonly | The index of the TextVariable within its containing object. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
name | string | r/w | The name of the TextVariable. |
parent | ApplicationDocument | readonly | The parent of the TextVariable (a Application or Document). |
preferences | Preferences | readonly | A collection of preferences objects. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
variableOptions | CaptionMetadataVariablePreference ChapterNumberVariablePreference CustomTextVariablePreference DateVariablePreference FileNameVariablePreference MatchCharacterStylePreference MatchParagraphStylePreference PageNumberVariablePreference |
readonly | The preferences associated with the text variable. Can return: PageNumberVariablePreference, ChapterNumberVariablePreference, DateVariablePreference, FileNameVariablePreference, MatchCharacterStylePreference, MatchParagraphStylePreference, CustomTextVariablePreference or CaptionMetadataVariablePreference. |
variableType | VariableTypes: VariableTypes.CUSTOM_TEXT_TYPE VariableTypes.FILE_NAME_TYPE VariableTypes.LAST_PAGE_NUMBER_TYPE VariableTypes.CHAPTER_NUMBER_TYPE VariableTypes.OUTPUT_DATE_TYPE VariableTypes.CREATION_DATE_TYPE VariableTypes.MODIFICATION_DATE_TYPE VariableTypes.MATCH_CHARACTER_STYLE_TYPE VariableTypes.MATCH_PARAGRAPH_STYLE_TYPE VariableTypes.XREF_PAGE_NUMBER_TYPE VariableTypes.XREF_CHAPTER_NUMBER_TYPE VariableTypes.LIVE_CAPTION_TYPE |
r/w | The variable type. |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
Array
of Text convertToText ()
Convert all of this variable's instances to text.
Array
of TextVariable getElements ()
Resolves the object specifier, creating an array of object references.
void remove ()
Deletes the TextVariable.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the TextVariable.
Element of
CaptionMetadataVariablePreference.parent
ChapterNumberVariablePreference.parent
CustomTextVariablePreference.parent
DateVariablePreference.parent
FileNameVariablePreference.parent
MatchCharacterStylePreference.parent
MatchParagraphStylePreference.parent
PageNumberVariablePreference.parent
TextVariableInstance.associatedTextVariable
Used in:
TextVariable TextVariables.nextItem (obj: TextVariable)
TextVariable TextVariables.previousItem (obj: TextVariable)
Return
Array of TextVariable TextVariable.getElements ()
TextVariable TextVariables.[] (index: number)
TextVariable TextVariables.add ([withProperties: Object])
TextVariable TextVariables.anyItem ()
Array of TextVariable TextVariables.everyItem ()
TextVariable TextVariables.firstItem ()
TextVariable TextVariables.item (index: varies)
TextVariable TextVariables.itemByName (name: string)
Array of TextVariable TextVariables.itemByRange (from: varies, to: varies)
TextVariable TextVariables.lastItem ()
TextVariable TextVariables.middleItem ()
TextVariable TextVariables.nextItem (obj: TextVariable)
TextVariable TextVariables.previousItem (obj: TextVariable)
Jongware, 23-Mar-2011 v3.0.3d | Contents :: Index |