Adobe InDesign CS4 (6.0) Object Model JS: ShowHideFieldsBehaviors

InDesign CS4

Class

ShowHideFieldsBehaviors

 A collection of show/hide fields 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

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

ParameterTypeDescription
indexnumberThe index.

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

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

ShowHideFieldsBehavior anyItem ()
Returns any ShowHideFieldsBehavior in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objShowHideFieldsBehaviorThe ShowHideFieldsBehavior whose index comes before the desired ShowHideFieldsBehavior.

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

ParameterTypeDescription
objShowHideFieldsBehaviorThe index of the ShowHideFieldsBehavior that follows the desired ShowHideFieldsBehavior.

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

Element of

Button.showHideFieldsBehaviors

FormField.showHideFieldsBehaviors

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