InDesign2026
API 21.5.1.73
Object

DTD

The document DTD.

XMLItem DTD
Hierarchy

Document

DTD

Properties

NameType AccessDescription
String | SpecialCharacters
+52 more
readonly The contents of the text. Can return: String or SpecialCharacters enumerator.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Number readonly The unique ID of the DTD.
Number readonly The index of the DTD within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
Document readonly The parent of the DTD (a Document).
Object read/write A property that allows setting of several properties at the same time.
String readonly The public ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset.
XMLTag read/write The tag of the root object.
String readonly The system ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
DTD[]

Resolves the object specifier, creating an array of object references.

void

Deletes the DTD.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
void

Selects the object.

existingSelection? SelectionOptions The selection status of the DTD in relation to previously selected objects.
String

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

String

Retrieves the object specifier.

Object of 3

Properties elsewhere that hold a DTD.

Parameter of 3

Method parameters that accept a DTD.

Return 12

Methods that return a DTD.