InDesign Server2025
API 20.5.0.49
Object

GraphicLayer

A layer in a PSD image or PDF file.

Hierarchy

GraphicLayer | GraphicLayerOption

GraphicLayer

GraphicLayer

Properties

NameType AccessDescription
Boolean readonly If true, the layer is an adjustment layer. Note: Must occur in the script before overriding the visibility state of the layer with a current visibility statement.
Boolean read/write If true, the layer is visible in the document.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Boolean readonly If true, the export state is on.
Boolean readonly If true, layer effects have been applied to the layer. Note: Must occur in the script before overriding the visibility state of the layer with a current visibility statement.
GraphicLayers<GraphicLayer> readonly A collection of graphic layers.
Boolean readonly If true, the layer has an export state.
Boolean readonly If true, the layer has a print state.
Boolean readonly If true, the layer has a view state.
Number readonly The unique ID of the GraphicLayer.
Number readonly The index of the GraphicLayer within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
Boolean readonly If true, the GraphicLayer is locked.
String readonly The name of the GraphicLayer.
Boolean readonly Returns the visibility setting set for the layer before the graphic file was imported. Note: Must occur in the script before overriding the visibility state with a current visibility statement.
GraphicLayer | GraphicLayerOption readonly The parent of the GraphicLayer (a GraphicLayerOption or GraphicLayer).
Boolean readonly If true, the print state is on.
Object read/write A property that allows setting of several properties at the same time.
Boolean readonly If true, the layer is a section divider layer.
Boolean readonly If true, the layer is a separator layer.
Boolean readonly If true, the view state is on.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
GraphicLayer[]

Resolves the object specifier, creating an array of object references.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

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

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a GraphicLayer.

Parameter of 3

Method parameters that accept a GraphicLayer.

Return 13

Methods that return a GraphicLayer.