Layer
A layer.
Go to Property Listing | Method Listing
Methods:
addEventListener, duplicate, extractLabel, getElements, insertLabel, merge, move, remove, removeEventListener, toSource, toSpecifier
Objects:
Boolean, Buttons, CheckBoxes, ComboBoxes, EPSTexts, EndnoteTextFrames, EventListeners, Events, FormFields, Graphic, GraphicLines, Groups, Guides, ListBoxes, MultiStateObjects, Number, Object, Ovals, PageItem, PageItems, Polygons, RadioButtons, Rectangles, SignatureFields, SplineItems, String, TextBoxes, TextFrames, UIColors,
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
Lists all graphics contained by the Layer. |
||
readonly |
Lists all page items contained by the Layer. |
||
readonly |
A collection of buttons. |
||
readonly |
A collection of checkboxes. |
||
readonly |
A collection of comboboxes. |
||
readonly |
A collection of endnote text frames. |
||
readonly |
EPSTexts |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
A collection of form fields. |
||
readonly |
A collection of graphic lines. |
||
readonly |
A collection of groups. |
||
readonly |
A collection of guides. |
||
readonly |
The unique ID of the Layer. |
||
read/write |
If true, text wrap settings applied to objects on the layer will not affect text on other layers when the layer is hidden. |
||
readonly |
The index of the Layer within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
A property that can be set to any string. |
||
Array of 3 Reals (0 - 255) |
read/write |
The color of the layer, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as a UI color. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator. |
|
readonly |
A collection of listboxes. |
||
read/write |
If true, the guide positions on the layer are locked. |
||
read/write |
If true, the Layer is locked. |
||
readonly |
A collection of multi-state objects. |
||
read/write |
The name of the Layer. |
||
readonly |
A collection of ellipses. |
||
readonly |
The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type. |
||
readonly |
The parent of the Layer (a Document). |
||
readonly |
A collection of polygons. |
||
read/write |
If true, the layer will print. |
||
read/write |
A property that allows setting of several properties at the same time. |
||
readonly |
A collection of radio buttons. |
||
readonly |
A collection of rectangles. |
||
read/write |
If true, guides are visible on the layer. |
||
readonly |
A collection of signature fields. |
||
readonly |
The spline items collection. |
||
readonly |
A collection of text boxes. |
||
readonly |
A collection of text frames. |
||
read/write |
If true, the Layer is visible. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
Layer duplicate ()
Duplicates the Layer.
String extractLabel (key:String)
Gets the label value associated with the specified key.
Parameter |
Type |
Description |
---|---|---|
key |
The key. |
Layer getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
Layer merge (with:Array of Layer)
Merges the layer with other layer(s).
Layer move (to:LocationOptions, reference:Layer)
Moves the Layer to the specified location.
Parameter |
Type |
Description |
---|---|---|
to |
The location relative to the reference object or within the containing object. |
|
reference |
The reference object. Note: Required when the to value specifies before or after. (Optional) |
undefined remove ()
Deletes the Layer.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the Layer.
String toSpecifier ()
Retrieves the object specifier.
Object of
Document.activeLayer
LayoutWindow.activeLayer
Button.itemLayer
CheckBox.itemLayer
ComboBox.itemLayer
EPS.itemLayer
EPSText.itemLayer
EndnoteTextFrame.itemLayer
FormField.itemLayer
Graphic.itemLayer
GraphicLine.itemLayer
Group.itemLayer
Guide.itemLayer
HtmlItem.itemLayer
Image.itemLayer
ImportedPage.itemLayer
ListBox.itemLayer
MediaItem.itemLayer
Movie.itemLayer
MultiStateObject.itemLayer
Oval.itemLayer
PDF.itemLayer
PICT.itemLayer
PageItem.itemLayer
Polygon.itemLayer
RadioButton.itemLayer
Rectangle.itemLayer
SVG.itemLayer
SignatureField.itemLayer
Sound.itemLayer
SplineItem.itemLayer
TextBox.itemLayer
TextFrame.itemLayer
WMF.itemLayer
Event.parent
EventListener.parent
MutationEvent.parent