Polygons

A collection of polygons.

Methods:

add, count

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

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

Create a new Polygon

Parameter

Type

Description

layer

Layer

The layer on which to create the Polygon (Optional)

numberOfSides

Number

The number of sides for the polygon (Optional)

insetPercentage

Number

The star inset percentage for the polygon (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 Polygon 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 Polygon (Optional)

Number count ()

Displays the number of elements in the Polygon.

Object of

Document.polygons

Button.polygons

State.polygons

Layer.polygons

Spread.polygons

Page.polygons

MasterSpread.polygons

PageItem.polygons

Oval.polygons

Rectangle.polygons

GraphicLine.polygons

Polygon.polygons

Group.polygons

Cell.polygons

Table.polygons

Text.polygons

Character.polygons

Word.polygons

Line.polygons

TextColumn.polygons

Paragraph.polygons

TextStyleRange.polygons

InsertionPoint.polygons

TextFrame.polygons

Story.polygons