A collection of printer presets.
Methods
PrinterPresetadd ([withProperties:
Object])
Creates a new PrinterPreset.
| Parameter | Type | Description |
|---|---|---|
| withProperties | Object | Initial values for properties of the new PrinterPreset (Optional) |
PrinterPresetanyItem ()
Returns any PrinterPreset in the collection.
number count ()
Displays the number of elements in the PrinterPreset.
Array of PrinterPreseteveryItem ()
Returns every PrinterPreset in the collection.
PrinterPresetfirstItem ()
Returns the first PrinterPreset in the collection.
PrinterPresetitem (index:
any)
Returns the PrinterPreset with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
PrinterPresetitemByName (name:
string)
Returns the PrinterPreset with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of PrinterPresetitemByRange (from:
any, to:
any)
Returns the PrinterPresets within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | PrinterPreset Long Integer String |
The PrinterPreset, index, or name at the beginning of the range. Can accept: PrinterPreset, Long Integer or String. |
| to | PrinterPreset Long Integer String |
The PrinterPreset, index, or name at the end of the range. Can accept: PrinterPreset, Long Integer or String. |
PrinterPresetlastItem ()
Returns the last PrinterPreset in the collection.
PrinterPresetmiddleItem ()
Returns the middle PrinterPreset in the collection.
PrinterPresetnextItem (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. |
PrinterPresetpreviousItem (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.
Element of:
Application.printerPresets