Polygons
A collection of polygons.
Instance
Read Only
Number length
The number of objects in the collection.
Methods
Number count()
Displays the number of elements in the Polygon.
Polygon add( Layer layer, Number numberOfSides, Number insetPercentage, LocationOptions at, Mixed reference, Object withProperties )
Creates a new Polygon.
Parameters
Polygon item( Mixed index )
Returns the Polygon with the specified index or name.
Parameters
Polygon itemByName( String name )
Returns the Polygon with the specified name.
Parameters
Polygon itemByID( Number id )
Returns the Polygon with the specified ID.
Parameters
Polygon itemByRange( Mixed from, Mixed to )
Returns the Polygons within the specified range.
Parameters
Polygon firstItem()
Returns the first Polygon in the collection.
Polygon lastItem()
Returns the last Polygon in the collection.
Polygon middleItem()
Returns the middle Polygon in the collection.
Polygon previousItem( Polygon obj )
Returns the Polygon with the index previous to the specified index.
Parameters
Polygon nextItem( Polygon obj )
Returns the Polygon whose index follows the specified Polygon in the collection.
Parameters
Polygon anyItem()
Returns any Polygon in the collection.
Polygon everyItem()
Returns every Polygon in the collection.
String toSource()
Generates a string which, if executed, will return the Polygon.
Polygon []( Number index )
Returns the Polygon with the specified index.