Adobe InDesign CS5.5 (7.5) Object Model JS: WMFs

InDesign CS5.5

Class

WMFs

 A collection of WMF graphics.

See also WMF.

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

ParameterTypeDescription
indexnumberThe index.

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: varies)
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: varies, to: varies)
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

MultiStateObject.wmfs

Oval.wmfs

PlaceGun.wmfs

Polygon.wmfs

Rectangle.wmfs

Snippet.wmfs

SplineItem.wmfs

State.wmfs

XMLElement.wmfs

Jongware, 28-Apr-2012 v3.0.3iContents :: Index