Adobe Photoshop CS5 Object Library JS: Layers

Photoshop CS5

Class

Layers

 The collection of layer objects, including art layer and layer set objects, in the document.

See also Layer.

QuickLinks

[], getByName, removeAll

Hierarchy

Object
Layers

Properties

PropertyTypeAccessDescription
lengthint readonlyNumber of elements in the collection.
parentObject readonlyThe object's container.
typenamestring readonlyThe class name of the object.

Methods

Instances

Layer [] (index: uint)
Get an element in the collection with the provided index.

ParameterTypeDescription
indexuint

Layer getByName (name: string)
Get the first element in the collection with the provided name.

ParameterTypeDescription
namestring

void removeAll ()
Deletes all elements.

Element of

Document.layers

LayerSet.layers

Jongware, 28-Aug-2012 v3.0.3iContents :: Index