Adobe InDesign CS5 (7.0) Object Model JS: PrinterPresets

InDesign CS5

Class

PrinterPresets

 A collection of printer presets.

QuickLinks

[], add, anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

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

ParameterTypeDescription
indexnumberThe index.

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

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

PrinterPreset anyItem ()
Returns any PrinterPreset in the collection.

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

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

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

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

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

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objPrinterPresetThe PrinterPreset whose index comes before the desired PrinterPreset.

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

ParameterTypeDescription
objPrinterPresetThe index of the PrinterPreset that follows the desired PrinterPreset.

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

Element of

Application.printerPresets

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