-
add( |
[layer] [, numberOfSides] [, insetPercentage] [, at=LocationOptions.UNKNOWN], reference [, withProperties]) |
→ Polygon |
-
Creates a new Polygon.
layer
|
Layer
The layer on which to create the Polygon. (Optional)
|
numberOfSides
|
number
The number of sides to give the Polygon. (Range: 3 to 100) (Optional)
|
insetPercentage
|
number
The star inset percentage applied to the Polygon. (Optional)
|
at
|
LocationOptions
The location at which to insert the Polygon relative to the reference object or within the container object. (Optional)
|
reference
|
The reference object. Note: Required when the at parameter is before or after. Can accept: Document, Spread, MasterSpread, Page, Layer or PageItem. (Optional)
|
withProperties
|
Object
Initial values for properties of the new Polygon (Optional)
|
-
-
Returns any Polygon in the collection.
-
-
Displays the number of elements in the Polygon.
-
-
Returns every Polygon in the collection.
-
-
Returns the first Polygon in the collection.
-
-
Returns the Polygon with the specified index or name.
index
|
The index or name. Can accept: Long Integer or String.
|
-
-
Returns the Polygon with the specified ID.
-
-
Returns the Polygon with the specified name.
-
-
Returns the Polygons within the specified range.
from
|
The Polygon, index, or name at the beginning of the range. Can accept: Polygon, Long Integer or String.
|
to
|
The Polygon, index, or name at the end of the range. Can accept: Polygon, Long Integer or String.
|
-
-
Returns the last Polygon in the collection.
-
-
Returns the middle Polygon in the collection.
-
-
Returns the Polygon whose index follows the specified Polygon in the collection.
obj
|
Polygon
The Polygon whose index comes before the desired Polygon.
|
-
-
Returns the Polygon with the index previous to the specified index.
obj
|
Polygon
The index of the Polygon that follows the desired Polygon.
|
-
-
Generates a string which, if executed, will return the Polygon.