PrinterPresets

A collection of printer presets.

Methods:

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

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

PrinterPreset [] (index:Number)

Returns the PrinterPreset with the specified index.

Parameter

Type

Description

index

Number

The index.

PrinterPreset add (withProperties:Object)

Creates a new PrinterPreset.

Parameter

Type

Description

withProperties

Object

Initial 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.

PrinterPreset everyItem ()

Returns every PrinterPreset in the collection.

PrinterPreset firstItem ()

Returns the first PrinterPreset in the collection.

PrinterPreset item (index:Varies LongInteger String)

Returns the PrinterPreset with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

PrinterPreset itemByName (name:String)

Returns the PrinterPreset with the specified name.

Parameter

Type

Description

name

String

The name.

PrinterPreset itemByRange (from:Varies LongInteger PrinterPreset String, to:Varies LongInteger PrinterPreset String)

Returns the PrinterPresets within the specified range.

Parameter

Type

Description

from

LongInteger

PrinterPreset

String

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

to

LongInteger

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.

Parameter

Type

Description

obj

PrinterPreset

The PrinterPreset whose index comes before the desired PrinterPreset.

PrinterPreset previousItem (obj:PrinterPreset)

Returns the PrinterPreset with the index previous to the specified index.

Parameter

Type

Description

obj

PrinterPreset

The index of the PrinterPreset that follows the desired PrinterPreset.

String toSource ()

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

Object of

Application.printerPresets