Edit in GitHubLog an issue

TextVariableInstances

A collection of text variable instances.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the TextVariableInstance.


TextVariableInstance add( LocationOptions to, Mixed reference, Object withProperties )

Creates a text variable instance at the specified location.

Parameters

TypeNameDescription
LocationOptions
to
The location relative to the reference object or within the containing object. (Optional)
Mixed
reference
The reference object. Note: Required only when the to parameter specifies before or after. Can accept: TextVariableInstance, XmlStory, TextFrame, EndnoteTextFrame, Story, Note, Cell, Footnote, Table, TextColumn, TextStyleRange, Text, InsertionPoint, Paragraph, Line, Word, Character or Change. (Optional)
Object
withProperties
Initial values for properties of the new TextVariableInstance (Optional)

TextVariableInstance item( Mixed index )

Returns the TextVariableInstance with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

TextVariableInstance itemByName( String name )

Returns the TextVariableInstance with the specified name.

Parameters

TypeNameDescription
String
name
The name.

TextVariableInstance itemByID( Number id )

Returns the TextVariableInstance with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

TextVariableInstance itemByRange( Mixed from, Mixed to )

Returns the TextVariableInstances within the specified range.

Parameters

TypeNameDescription
Mixed
from
The TextVariableInstance, index, or name at the beginning of the range. Can accept: TextVariableInstance, Long Integer or String.
Mixed
to
The TextVariableInstance, index, or name at the end of the range. Can accept: TextVariableInstance, Long Integer or String.

TextVariableInstance firstItem()

Returns the first TextVariableInstance in the collection.


TextVariableInstance lastItem()

Returns the last TextVariableInstance in the collection.


TextVariableInstance middleItem()

Returns the middle TextVariableInstance in the collection.


TextVariableInstance previousItem( TextVariableInstance obj )

Returns the TextVariableInstance with the index previous to the specified index.

Parameters

TypeNameDescription
TextVariableInstance
obj
The index of the TextVariableInstance that follows the desired TextVariableInstance.

TextVariableInstance nextItem( TextVariableInstance obj )

Returns the TextVariableInstance whose index follows the specified TextVariableInstance in the collection.

Parameters

TypeNameDescription
TextVariableInstance
obj
The TextVariableInstance whose index comes before the desired TextVariableInstance.

TextVariableInstance anyItem()

Returns any TextVariableInstance in the collection.


TextVariableInstance everyItem()

Returns every TextVariableInstance in the collection.


String toSource()

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


TextVariableInstance []( Number index )

Returns the TextVariableInstance with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.