Edit in GitHubLog an issue

GraphicLayers

A collection of graphic layers.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the GraphicLayer.


GraphicLayer item( Mixed index )

Returns the GraphicLayer with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

GraphicLayer itemByName( String name )

Returns the GraphicLayer with the specified name.

Parameters

TypeNameDescription
String
name
The name.

GraphicLayer itemByID( Number id )

Returns the GraphicLayer with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

GraphicLayer itemByRange( Mixed from, Mixed to )

Returns the GraphicLayers within the specified range.

Parameters

TypeNameDescription
Mixed
from
The GraphicLayer, index, or name at the beginning of the range. Can accept: GraphicLayer, Long Integer or String.
Mixed
to
The GraphicLayer, index, or name at the end of the range. Can accept: GraphicLayer, Long Integer or String.

GraphicLayer firstItem()

Returns the first GraphicLayer in the collection.


GraphicLayer lastItem()

Returns the last GraphicLayer in the collection.


GraphicLayer middleItem()

Returns the middle GraphicLayer in the collection.


GraphicLayer previousItem( GraphicLayer obj )

Returns the GraphicLayer with the index previous to the specified index.

Parameters

TypeNameDescription
GraphicLayer
obj
The index of the GraphicLayer that follows the desired GraphicLayer.

GraphicLayer nextItem( GraphicLayer obj )

Returns the GraphicLayer whose index follows the specified GraphicLayer in the collection.

Parameters

TypeNameDescription
GraphicLayer
obj
The GraphicLayer whose index comes before the desired GraphicLayer.

GraphicLayer anyItem()

Returns any GraphicLayer in the collection.


GraphicLayer everyItem()

Returns every GraphicLayer in the collection.


String toSource()

Generates a string which, if executed, will return the GraphicLayer.


GraphicLayer []( Number index )

Returns the GraphicLayer with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.