Adobe InDesign CS3 (5.0) Object Model JS: PICTs

InDesign CS3

Class

PICTs

 A collection of PICT 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

PICT anyItem ()
Returns any PICT in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objPICTThe PICT whose index comes before the desired PICT.

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

ParameterTypeDescription
objPICTThe index of the PICT that follows the desired PICT.

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

Element of

Button.picts

GraphicLine.picts

Group.picts

Oval.picts

PageItem.picts

Polygon.picts

Rectangle.picts

State.picts

XMLElement.picts

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