Adobe InDesign CS2 (4.0) Object Model JS: PICTs

InDesign CS2

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

Used in:

Asset Library.store (using: Array of any)

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