Adobe InDesign CS (3.0) Object Model JS: DTD

InDesign CS

Class

DTD

 The document DTD. Base Class: XMLItem

QuickLinks

duplicate, move, remove, select

Hierarchy

Document | XMLElement | XMLItem
XMLItem
DTD

Properties

PropertyTypeAccessDescription
contentsSpecialCharactersString readonlyThe contents of the text. Can return: String or SpecialCharacters enumerator.
idnumber readonlyThe unique ID of the DTD.
indexnumber readonlyThe index of the DTD within its containing object.
parentDocument
XMLElement
XMLItem
readonlyThe parent of the DTD (a Document, XMLElement or XMLItem).
propertiesObject r/wA property that allows setting of several properties at the same time.
publicIdstring readonlyThe public ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset.
rootTagXMLTag r/wThe tag of the root object.
systemIdstring readonlyThe system ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset.

Methods

Instances

DTD duplicate ()
Duplicates the DTD.

XMLElement move (to: LocationOptions[, reference: any])
Move element before/after another element or text object, or to beginning/end

ParameterTypeDescription
toLocationOptions:
LocationOptions.BEFORE
LocationOptions.AFTER
LocationOptions.AT_END
LocationOptions.AT_BEGINNING
LocationOptions.UNKNOWN
Location
referenceText
XMLItem
Before/after this object. Can accept: XMLItem or Text. (Optional)

void remove ()
Deletes the DTD.

void select ([existingSelection: SelectionOptions=SelectionOptions.REPLACE])
Select this object.

ParameterTypeDescription
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE
How to handle the existing selection (Optional) (default: SelectionOptions.REPLACE)

Return

DTD DTD.duplicate ()

Jongware, 27-Jun-2010 v3.0.3dContents :: Index