TextVariable
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
associatedInstances | Array of TextVariableInstance | readonly | Variable instances associated with the text variable. |
index | number | readonly | The index of the TextVariable within its containing object. |
name | string | r/w | The name of the TextVariable. |
parent | ApplicationDocument | readonly | The parent of the TextVariable (a Application or Document). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
variableOptions | ChapterNumberVariablePreference CustomTextVariablePreference DateVariablePreference FileNameVariablePreference MatchCharacterStylePreference MatchParagraphStylePreference PageNumberVariablePreference |
readonly | The preferences associated with the text variable. Can return: PageNumberVariablePreference, ChapterNumberVariablePreference, DateVariablePreference, FileNameVariablePreference, MatchCharacterStylePreference, MatchParagraphStylePreference or CustomTextVariablePreference. |
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 |
r/w | The variable type. |
Methods
Instances
TextVariable 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.
string toSource ()
Generates a string which, if executed, will return the TextVariable.
Element of
ChapterNumberVariablePreference.parent
CustomTextVariablePreference.parent
DateVariablePreference.parent
FileNameVariablePreference.parent
MatchCharacterStylePreference.parent
MatchParagraphStylePreference.parent
PageNumberVariablePreference.parent
TextVariableInstance.associatedTextVariable
Used in:
array of TextVariable TextVariables.itemByRange (from: any, to: any)
TextVariable TextVariables.nextItem (obj: TextVariable)
TextVariable TextVariables.previousItem (obj: TextVariable)
Return
TextVariable TextVariable.convertToText ()
Array of TextVariable TextVariable.getElements ()
TextVariable TextVariables.add ([withProperties: Object])
TextVariable TextVariables.anyItem ()
Array of TextVariable TextVariables.everyItem ()
TextVariable TextVariables.firstItem ()
TextVariable TextVariables.item (index: any)
TextVariable TextVariables.itemByName (name: string)
Array of TextVariable TextVariables.itemByRange (from: any, to: any)
TextVariable TextVariables.lastItem ()
TextVariable TextVariables.middleItem ()
TextVariable TextVariables.nextItem (obj: TextVariable)
TextVariable TextVariables.previousItem (obj: TextVariable)
Jongware, 27-Jun-2010 v3.0.3d | Contents :: Index |