Adobe InDesign CS6 (8.0) Object Model JS: DTDs

InDesign CS6

Class

DTDs

 A collection of DTDs.

QuickLinks

[], anyItem, count, everyItem, firstItem, item, itemByID, 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: varies)
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.

Array of DTD itemByRange (from: varies, to: varies)
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, 28-Apr-2012 v3.0.3hContents :: Index