Adobe InDesign CS4 (6.0) Object Model JS: QuitBehaviors

InDesign CS4

Class

QuitBehaviors

 A collection of quit behavior objects.

QuickLinks

[], add, 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

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

ParameterTypeDescription
indexnumberThe index.

QuitBehavior add ([withProperties: Object])
Creates a new QuitBehavior.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new QuitBehavior (Optional)

QuitBehavior anyItem ()
Returns any QuitBehavior in the collection.

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

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

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

QuitBehavior item (index: any)
Returns the QuitBehavior with the specified index or name.

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

Array of QuitBehavior itemByRange (from: any, to: any)
Returns the QuitBehaviors within the specified range.

ParameterTypeDescription
fromLong Integer
QuitBehavior
String
The QuitBehavior, index, or name at the beginning of the range. Can accept: QuitBehavior, Long Integer or String.
toLong Integer
QuitBehavior
String
The QuitBehavior, index, or name at the end of the range. Can accept: QuitBehavior, Long Integer or String.

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

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

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

ParameterTypeDescription
objQuitBehaviorThe QuitBehavior whose index comes before the desired QuitBehavior.

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

ParameterTypeDescription
objQuitBehaviorThe index of the QuitBehavior that follows the desired QuitBehavior.

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

Element of

Button.quitBehaviors

FormField.quitBehaviors

Jongware, 20-Jun-2010 v3.0.3dContents :: Index