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