Adobe InDesign CS (3.0) Object Model JS: Rectangles

InDesign CS

Class

Rectangles

 A collection of rectangles.

QuickLinks

add, count

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Rectangle add ([layer: Layer][, at: LocationOptions=LocationOptions.UNKNOWN][, reference: any][, withProperties: Object])
Create a new Rectangle

ParameterTypeDescription
layerLayerThe layer on which to create the Rectangle. (Optional)
atLocationOptions:
LocationOptions.BEFORE
LocationOptions.AFTER
LocationOptions.AT_END
LocationOptions.AT_BEGINNING
LocationOptions.UNKNOWN
Location (Optional) (default: LocationOptions.UNKNOWN)
referenceDocument
Layer
MasterSpread
Page
Spread
Before/after this Rectangle or at the beginning/end of this Document, Spread, Master Spread, Page or Layer. Can accept: Document, Spread, MasterSpread, Page or Layer. (Optional)
withPropertiesObjectInitial values for properties of the new Rectangle (Optional)

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

Element of

Button.rectangles

Cell.rectangles

Character.rectangles

Document.rectangles

GraphicLine.rectangles

Group.rectangles

InsertionPoint.rectangles

Layer.rectangles

Line.rectangles

MasterSpread.rectangles

Oval.rectangles

Page.rectangles

PageItem.rectangles

Paragraph.rectangles

Polygon.rectangles

Rectangle.rectangles

Spread.rectangles

State.rectangles

Story.rectangles

Table.rectangles

Text.rectangles

TextColumn.rectangles

TextFrame.rectangles

TextStyleRange.rectangles

Word.rectangles

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