Adobe InDesign CS5 Server (7.0) Object Model JS: FlattenerPresets

InDesign Server CS5

Class

FlattenerPresets

 A collection of transparency flattener presets.

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

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

ParameterTypeDescription
indexnumberThe index.

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

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

FlattenerPreset anyItem ()
Returns any FlattenerPreset in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

ParameterTypeDescription
fromFlattenerPreset
Long Integer
String
The FlattenerPreset, index, or name at the beginning of the range. Can accept: FlattenerPreset, Long Integer or String.
toFlattenerPreset
Long Integer
String
The FlattenerPreset, index, or name at the end of the range. Can accept: FlattenerPreset, Long Integer or String.

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

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

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

ParameterTypeDescription
objFlattenerPresetThe FlattenerPreset whose index comes before the desired FlattenerPreset.

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

ParameterTypeDescription
objFlattenerPresetThe index of the FlattenerPreset that follows the desired FlattenerPreset.

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

Element of

Application.flattenerPresets

Jongware, 23-Mar-2011 v3.0.3dContents :: Index