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