Adobe InDesign CS4 (6.0) Object Model JS: DTDs

InDesign CS4

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 [] (index: number)
Returns the DTD with the specified index.

ParameterTypeDescription
indexnumberThe index.

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 Integer
String
The index or name. Can accept: Long Integer 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 Integer
String
The DTD, index, or name at the beginning of the range. Can accept: DTD, Long Integer or String.
toDTD
Long Integer
String
The DTD, index, or name at the end of the range. Can accept: DTD, Long Integer 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

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