Adobe InDesign CS6 (8.0) Object Model JS: Behaviors

InDesign CS6

Class

Behaviors

 A collection of behavior objects.

QuickLinks

[], anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Behavior [] (index: number)
Returns the Behavior with the specified index.

ParameterTypeDescription
indexnumberThe index.

Behavior anyItem ()
Returns any Behavior in the collection.

number count ()
Displays the number of elements in the Behavior.

Array of Behavior everyItem ()
Returns every Behavior in the collection.

Behavior firstItem ()
Returns the first Behavior in the collection.

Behavior item (index: varies)
Returns the Behavior with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer or String.

Behavior itemByID (id: number)
Returns the Behavior with the specified ID.

ParameterTypeDescription
idnumberThe ID.

Behavior itemByName (name: string)
Returns the Behavior with the specified name.

ParameterTypeDescription
namestringThe name.

Array of Behavior itemByRange (from: varies, to: varies)
Returns the Behaviors within the specified range.

ParameterTypeDescription
fromBehavior
Long Integer
String
The Behavior, index, or name at the beginning of the range. Can accept: Behavior, Long Integer or String.
toBehavior
Long Integer
String
The Behavior, index, or name at the end of the range. Can accept: Behavior, Long Integer or String.

Behavior lastItem ()
Returns the last Behavior in the collection.

Behavior middleItem ()
Returns the middle Behavior in the collection.

Behavior nextItem (obj: Behavior)
Returns the Behavior whose index follows the specified Behavior in the collection.

ParameterTypeDescription
objBehaviorThe Behavior whose index comes before the desired Behavior.

Behavior previousItem (obj: Behavior)
Returns the Behavior with the index previous to the specified index.

ParameterTypeDescription
objBehaviorThe index of the Behavior that follows the desired Behavior.

string toSource ()
Generates a string which, if executed, will return the Behavior.

Element of

Button.behaviors

CheckBox.behaviors

ComboBox.behaviors

ListBox.behaviors

RadioButton.behaviors

SignatureField.behaviors

TextBox.behaviors

Jongware, 28-Apr-2012 v3.0.3hContents :: Index