Adobe InCopy CS5.5 (7.5) Object Model JS: GraphicLayers

InCopy CS5.5

Class

GraphicLayers

 A collection of graphic layers.

See also GraphicLayer.

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

GraphicLayer [] (index: number)
Returns the GraphicLayer with the specified index.

ParameterTypeDescription
indexnumberThe index.

GraphicLayer anyItem ()
Returns any GraphicLayer in the collection.

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

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

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

GraphicLayer item (index: varies)
Returns the GraphicLayer with the specified index or name.

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

Array of GraphicLayer itemByRange (from: varies, to: varies)
Returns the GraphicLayers within the specified range.

ParameterTypeDescription
fromGraphicLayer
Long Integer
String
The GraphicLayer, index, or name at the beginning of the range. Can accept: GraphicLayer, Long Integer or String.
toGraphicLayer
Long Integer
String
The GraphicLayer, index, or name at the end of the range. Can accept: GraphicLayer, Long Integer or String.

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

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

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

ParameterTypeDescription
objGraphicLayerThe GraphicLayer whose index comes before the desired GraphicLayer.

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

ParameterTypeDescription
objGraphicLayerThe index of the GraphicLayer that follows the desired GraphicLayer.

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

Element of

GraphicLayer.graphicLayers

GraphicLayerOption.graphicLayers

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