Adobe InDesign CS2 (4.0) Object Model JS: ViewZoomBehaviors

InDesign CS2

Class

ViewZoomBehaviors

 A collection of view zoom 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

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

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

ViewZoomBehavior anyItem ()
Returns any ViewZoomBehavior in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objViewZoomBehaviorThe ViewZoomBehavior whose index comes before the desired ViewZoomBehavior.

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

ParameterTypeDescription
objViewZoomBehaviorThe index of the ViewZoomBehavior that follows the desired ViewZoomBehavior.

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

Element of

Button.viewZoomBehaviors

FormField.viewZoomBehaviors

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