Adobe InDesign CS3 (5.0) Object Model JS: WMFs

InDesign CS3

Class

WMFs

 A collection of WMF graphics.

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

WMF anyItem ()
Returns any WMF in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

ParameterTypeDescription
fromLong Integer
String
WMF
The WMF, index, or name at the beginning of the range. Can accept: WMF, Long Integer or String.
toLong Integer
String
WMF
The WMF, index, or name at the end of the range. Can accept: WMF, Long Integer or String.

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

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

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

ParameterTypeDescription
objWMFThe WMF whose index comes before the desired WMF.

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

ParameterTypeDescription
objWMFThe index of the WMF that follows the desired WMF.

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

Element of

Button.wmfs

GraphicLine.wmfs

Group.wmfs

Oval.wmfs

PageItem.wmfs

Polygon.wmfs

Rectangle.wmfs

State.wmfs

XMLElement.wmfs

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