InDesign Server2025
API 20.5.0.49
Collection of DocumentPreset

DocumentPresets

A collection of document presets.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

DocumentPreset

Returns the DocumentPreset with the specified index.

index Number The index.
DocumentPreset

Creates a new DocumentPreset.

withProperties? Object Initial values for properties of the new DocumentPreset
DocumentPreset

Returns any DocumentPreset in the collection.

Number

Displays the number of elements in the DocumentPreset.

DocumentPreset[]

Returns every DocumentPreset in the collection.

DocumentPreset

Returns the first DocumentPreset in the collection.

DocumentPreset

Returns the DocumentPreset with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
DocumentPreset

Returns the DocumentPreset with the specified ID.

id Number The ID.
DocumentPreset

Returns the DocumentPreset with the specified name.

name String The name.
DocumentPreset[]

Returns the DocumentPresets within the specified range.

from DocumentPreset | LongInteger | String The DocumentPreset, index, or name at the beginning of the range. Can accept: DocumentPreset, Long Integer or String.
to DocumentPreset | LongInteger | String The DocumentPreset, index, or name at the end of the range. Can accept: DocumentPreset, Long Integer or String.
DocumentPreset

Returns the last DocumentPreset in the collection.

DocumentPreset

Returns the middle DocumentPreset in the collection.

DocumentPreset

Returns the DocumentPreset whose index follows the specified DocumentPreset in the collection.

obj DocumentPreset The DocumentPreset whose index comes before the desired DocumentPreset.
DocumentPreset

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

obj DocumentPreset The index of the DocumentPreset that follows the desired DocumentPreset.
String

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

Object of 1

Properties elsewhere that hold a DocumentPresets.