A collection of document presets.
Methods
DocumentPresetadd ([withProperties:
Object])
Creates a new DocumentPreset.
| Parameter | Type | Description |
|---|---|---|
| withProperties | Object | Initial values for properties of the new DocumentPreset (Optional) |
DocumentPresetanyItem ()
Returns any DocumentPreset in the collection.
number count ()
Displays the number of elements in the DocumentPreset.
Array of DocumentPreseteveryItem ()
Returns every DocumentPreset in the collection.
DocumentPresetfirstItem ()
Returns the first DocumentPreset in the collection.
DocumentPresetitem (index:
any)
Returns the DocumentPreset with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
DocumentPresetitemByID (id:
number)
Returns the DocumentPreset with the specified ID.
| Parameter | Type | Description |
|---|---|---|
| id | number | The ID. |
DocumentPresetitemByName (name:
string)
Returns the DocumentPreset with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of DocumentPresetitemByRange (from:
any, to:
any)
Returns the DocumentPresets within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | DocumentPreset Long Integer String |
The DocumentPreset, index, or name at the beginning of the range. Can accept: DocumentPreset, Long Integer or String. |
| to | DocumentPreset Long Integer String |
The DocumentPreset, index, or name at the end of the range. Can accept: DocumentPreset, Long Integer or String. |
DocumentPresetlastItem ()
Returns the last DocumentPreset in the collection.
DocumentPresetmiddleItem ()
Returns the middle DocumentPreset in the collection.
DocumentPresetnextItem (obj:
DocumentPreset)
Returns the DocumentPreset whose index follows the specified DocumentPreset in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | DocumentPreset | The DocumentPreset whose index comes before the desired DocumentPreset. |
DocumentPresetpreviousItem (obj:
DocumentPreset)
Returns the DocumentPreset with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | DocumentPreset | The index of the DocumentPreset that follows the desired DocumentPreset. |
string toSource ()
Generates a string which, if executed, will return the DocumentPreset.
Element of:
Application.documentPresets