InDesign2026
API 21.5.1.73
Collection of TrapPreset

TrapPresets

A collection of trap presets.

Properties

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

Methods

TrapPreset

Returns the TrapPreset with the specified index.

index Number The index.
TrapPreset

Creates a new TrapPreset.

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

Returns any TrapPreset in the collection.

Number

Displays the number of elements in the TrapPreset.

TrapPreset[]

Returns every TrapPreset in the collection.

TrapPreset

Returns the first TrapPreset in the collection.

TrapPreset

Returns the TrapPreset with the specified index or name.

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

Returns the TrapPreset with the specified ID.

id Number The ID.
TrapPreset

Returns the TrapPreset with the specified name.

name String The name.
TrapPreset[]

Returns the TrapPresets within the specified range.

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

Returns the last TrapPreset in the collection.

TrapPreset

Returns the middle TrapPreset in the collection.

TrapPreset

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

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

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

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

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

Object of 2

Properties elsewhere that hold a TrapPresets.