TextVariableInstances
QuickLinks
Properties
Property | Type | Access | Description |
---|---|---|---|
length | number | readonly | The number of objects in the collection. |
Methods
Instances
TextVariableInstance [] (index:
number)
Returns the TextVariableInstance with the specified index.
Parameter | Type | Description |
---|---|---|
index | number | The index. |
TextVariableInstance add ([to:
LocationOptions=LocationOptions.UNKNOWN][, reference:
varies][, withProperties:
Object])
Creates a text variable instance at the specified location.
Parameter | Type | Description |
---|---|---|
to | LocationOptions: LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN | The location relative to the reference object or within the containing object. (Optional) (default: LocationOptions.UNKNOWN) |
reference | Cell Change Character Footnote InsertionPoint Line Note Paragraph Story Table Text TextColumn TextFrame TextStyleRange TextVariableInstance Word XmlStory | The reference object. Note: Required only when the to parameter specifies before or after. Can accept: TextVariableInstance, XmlStory, TextFrame, Story, Note, Cell, Footnote, Table, TextColumn, TextStyleRange, Text, InsertionPoint, Paragraph, Line, Word, Character or Change. (Optional) |
withProperties | Object | Initial values for properties of the new TextVariableInstance (Optional) |
TextVariableInstance anyItem ()
Returns any TextVariableInstance in the collection.
number count ()
Displays the number of elements in the TextVariableInstance.
Array of TextVariableInstance everyItem ()
Returns every TextVariableInstance in the collection.
TextVariableInstance firstItem ()
Returns the first TextVariableInstance in the collection.
TextVariableInstance item (index:
varies)
Returns the TextVariableInstance with the specified index or name.
Parameter | Type | Description |
---|---|---|
index | Long Integer String | The index or name. Can accept: Long Integer or String. |
TextVariableInstance itemByID (id:
number)
Returns the TextVariableInstance with the specified ID.
Parameter | Type | Description |
---|---|---|
id | number | The ID. |
TextVariableInstance itemByName (name:
string)
Returns the TextVariableInstance with the specified name.
Parameter | Type | Description |
---|---|---|
name | string | The name. |
Array of TextVariableInstance itemByRange (from:
varies, to:
varies)
Returns the TextVariableInstances within the specified range.
Parameter | Type | Description |
---|---|---|
from | Long Integer String TextVariableInstance | The TextVariableInstance, index, or name at the beginning of the range. Can accept: TextVariableInstance, Long Integer or String. |
to | Long Integer String TextVariableInstance | The TextVariableInstance, index, or name at the end of the range. Can accept: TextVariableInstance, Long Integer or String. |
TextVariableInstance lastItem ()
Returns the last TextVariableInstance in the collection.
TextVariableInstance middleItem ()
Returns the middle TextVariableInstance in the collection.
TextVariableInstance nextItem (obj:
TextVariableInstance)
Returns the TextVariableInstance whose index follows the specified TextVariableInstance in the collection.
Parameter | Type | Description |
---|---|---|
obj | TextVariableInstance | The TextVariableInstance whose index comes before the desired TextVariableInstance. |
TextVariableInstance previousItem (obj:
TextVariableInstance)
Returns the TextVariableInstance with the index previous to the specified index.
Parameter | Type | Description |
---|---|---|
obj | TextVariableInstance | The index of the TextVariableInstance that follows the desired TextVariableInstance. |
string toSource ()
Generates a string which, if executed, will return the TextVariableInstance.
Element of
Cell.textVariableInstances
Change.textVariableInstances
Character.textVariableInstances
Footnote.textVariableInstances
InsertionPoint.textVariableInstances
Line.textVariableInstances
Note.textVariableInstances
Paragraph.textVariableInstances
Story.textVariableInstances
Table.textVariableInstances
Text.textVariableInstances
TextColumn.textVariableInstances
TextFrame.textVariableInstances
TextStyleRange.textVariableInstances
Word.textVariableInstances
XmlStory.textVariableInstances
Jongware, 20-Jun-2010 v3.0.3d | Contents :: Index |