Rectangles

A collection of rectangles.

Methods:

add, count

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Rectangle add (layer:Layer, [at:LocationOptions=LocationOptions], reference:Varies Document MasterSpread Page Spread Layer, withProperties:Object)

Create a new Rectangle

Parameter

Type

Description

layer

Layer

The layer on which to create the Rectangle. (Optional)

at

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

Location (Optional)

(default: LocationOptions.UNKNOWN)

reference

Document

MasterSpread

Page

Spread

Layer

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)

withProperties

Object

Initial values for properties of the new Rectangle (Optional)

Number count ()

Displays the number of elements in the Rectangle.

Object of

Document.rectangles

Button.rectangles

State.rectangles

Layer.rectangles

Spread.rectangles

Page.rectangles

MasterSpread.rectangles

PageItem.rectangles

Oval.rectangles

Rectangle.rectangles

GraphicLine.rectangles

Polygon.rectangles

Group.rectangles

Cell.rectangles

Table.rectangles

Text.rectangles

Character.rectangles

Word.rectangles

Line.rectangles

TextColumn.rectangles

Paragraph.rectangles

TextStyleRange.rectangles

InsertionPoint.rectangles

TextFrame.rectangles

Story.rectangles