Adobe InDesign CS4 (6.0) Object Model JS: CloseWindowBehaviors

InDesign CS4

Class

CloseWindowBehaviors

 A collection of close window 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

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

ParameterTypeDescription
indexnumberThe index.

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

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

CloseWindowBehavior anyItem ()
Returns any CloseWindowBehavior in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

ParameterTypeDescription
fromCloseWindowBehavior
Long Integer
String
The CloseWindowBehavior, index, or name at the beginning of the range. Can accept: CloseWindowBehavior, Long Integer or String.
toCloseWindowBehavior
Long Integer
String
The CloseWindowBehavior, index, or name at the end of the range. Can accept: CloseWindowBehavior, Long Integer or String.

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

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

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

ParameterTypeDescription
objCloseWindowBehaviorThe CloseWindowBehavior whose index comes before the desired CloseWindowBehavior.

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

ParameterTypeDescription
objCloseWindowBehaviorThe index of the CloseWindowBehavior that follows the desired CloseWindowBehavior.

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

Element of

Button.closeWindowBehaviors

FormField.closeWindowBehaviors

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