A collection of layers.
Go to Property Listing | Method Listing
[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The number of objects in the collection. |
Layer [] (index:Number)
Returns the Layer with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
The index. |
Layer add (withProperties:Object)
Creates a new Layer.
Parameter |
Type |
Description |
---|---|---|
withProperties |
Initial values for properties of the new Layer (Optional) |
Layer anyItem ()
Returns any Layer in the collection.
Number count ()
Displays the number of elements in the Layer.
Layer everyItem ()
Returns every Layer in the collection.
Layer firstItem ()
Returns the first Layer in the collection.
Layer item (index:Varies LongInteger String)
Returns the Layer with the specified index or name.
Parameter |
Type |
Description |
---|---|---|
index |
LongInteger |
The index or name. Can accept: Long Integer or String. |
Layer itemByID (id:Number)
Returns the Layer with the specified ID.
Parameter |
Type |
Description |
---|---|---|
id |
The ID. |
Layer itemByName (name:String)
Returns the Layer with the specified name.
Parameter |
Type |
Description |
---|---|---|
name |
The name. |
Layer itemByRange (from:Varies Layer LongInteger String, to:Varies Layer LongInteger String)
Returns the Layers within the specified range.
Parameter |
Type |
Description |
---|---|---|
from |
LongInteger |
The Layer, index, or name at the beginning of the range. Can accept: Layer, Long Integer or String. |
to |
LongInteger |
The Layer, index, or name at the end of the range. Can accept: Layer, Long Integer or String. |
Layer lastItem ()
Returns the last Layer in the collection.
Layer middleItem ()
Returns the middle Layer in the collection.
Layer nextItem (obj:Layer)
Returns the Layer whose index follows the specified Layer in the collection.
Parameter |
Type |
Description |
---|---|---|
obj |
The Layer whose index comes before the desired Layer. |
Layer previousItem (obj:Layer)
Returns the Layer with the index previous to the specified index.
Parameter |
Type |
Description |
---|---|---|
obj |
The index of the Layer that follows the desired Layer. |
String toSource ()
Generates a string which, if executed, will return the Layer.
Document.layers