PreferencesGraphicLayers

A collection of graphic layers.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

count(
)
 → number
item(
index)
 → GraphicLayer
itemByID(
id)
 → GraphicLayer
itemByName(
name)
 → GraphicLayer
itemByRange(
from, to)
 → GraphicLayer
nextItem(
obj)
 → GraphicLayer
toSource(
)
 → string
anyItem(
)
 → GraphicLayer
Returns any GraphicLayer in the collection.
count(
)
 → number
Displays the number of elements in the GraphicLayer.
everyItem(
)
 → GraphicLayer
Returns every GraphicLayer in the collection.
firstItem(
)
 → GraphicLayer
Returns the first GraphicLayer in the collection.
item(
index)
 → GraphicLayer
Returns the GraphicLayer with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → GraphicLayer
Returns the GraphicLayer with the specified ID.
id number The ID.
itemByName(
name)
 → GraphicLayer
Returns the GraphicLayer with the specified name.
name string The name.
itemByRange(
from, to)
 → GraphicLayer
Returns the GraphicLayers within the specified range.
from The GraphicLayer, index, or name at the beginning of the range. Can accept: GraphicLayer, Long Integer or String.
to The GraphicLayer, index, or name at the end of the range. Can accept: GraphicLayer, Long Integer or String.
lastItem(
)
 → GraphicLayer
Returns the last GraphicLayer in the collection.
middleItem(
)
 → GraphicLayer
Returns the middle GraphicLayer in the collection.
nextItem(
obj)
 → GraphicLayer
Returns the GraphicLayer whose index follows the specified GraphicLayer in the collection.
obj GraphicLayer The GraphicLayer whose index comes before the desired GraphicLayer.
previousItem(
obj)
 → GraphicLayer
Returns the GraphicLayer with the index previous to the specified index.
obj GraphicLayer The index of the GraphicLayer that follows the desired GraphicLayer.
toSource(
)
 → string
Generates a string which, if executed, will return the GraphicLayer.