InDesign Server2025
API 20.5.0.49
Collection of DTD

DTDs

A collection of DTDs.

Properties

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

Methods

DTD

Returns the DTD with the specified index.

index Number The index.
DTD

Returns any DTD in the collection.

Number

Displays the number of elements in the DTD.

DTD[]

Returns every DTD in the collection.

DTD

Returns the first DTD in the collection.

DTD

Returns the DTD with the specified index or name.

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

Returns the DTD with the specified ID.

id Number The ID.
DTD[]

Returns the DTDs within the specified range.

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

Returns the last DTD in the collection.

DTD

Returns the middle DTD in the collection.

DTD

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

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

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

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

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

Object of 1

Properties elsewhere that hold a DTDs.