Adobe InDesign CS2 (4.0) Object Model JS: DTDs

InDesign CS2

Class

DTDs

 A collection of DTDs.

QuickLinks

anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

DTD anyItem ()
Returns any DTD in the collection.

number count ()
Displays the number of elements in the DTD.

Array of DTD everyItem ()
Returns every DTD in the collection.

DTD firstItem ()
Returns the first DTD in the collection.

DTD item (index: any)
Returns the DTD with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

DTD itemByID (id: number)
Returns the DTD with the specified ID.

ParameterTypeDescription
idnumberThe ID.

DTD itemByName (name: string)
Returns the DTD with the specified name.

ParameterTypeDescription
namestringThe name.

Array of DTD itemByRange (from: any, to: any)
Returns the DTDs within the specified range.

ParameterTypeDescription
fromDTD
Long
String
The DTD, index, or name at the beginning of the range. Can accept: DTD, Long or String.
toDTD
Long
String
The DTD, index, or name at the end of the range. Can accept: DTD, Long or String.

DTD lastItem ()
Returns the last DTD in the collection.

DTD middleItem ()
Returns the middle DTD in the collection.

DTD nextItem (obj: DTD)
Returns the DTD whose index follows the specified DTD in the collection.

ParameterTypeDescription
objDTDThe DTD whose index comes before the desired DTD.

DTD previousItem (obj: DTD)
Returns the DTD with the index previous to the specified index.

ParameterTypeDescription
objDTDThe index of the DTD that follows the desired DTD.

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

Element of

Document.dtds

XMLElement.dtds

XMLItem.dtds

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