Adds an event listener.
Object
Layer
A layer.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Graphic[] | readonly | Lists all graphics contained by the Layer. | |
| PageItem[] | readonly | Lists all page items contained by the Layer. | |
| Buttons |
readonly | A collection of buttons. | |
| CheckBoxes |
readonly | A collection of checkboxes. | |
| ComboBoxes |
readonly | A collection of comboboxes. | |
| EndnoteTextFrames |
readonly | A collection of endnote text frames. | |
| EPSTexts |
readonly | EPSTexts | |
| EventListeners |
readonly | A collection of event listeners. | |
| Events |
readonly | A collection of events. | |
| FormFields |
readonly | A collection of form fields. | |
| GraphicLines |
readonly | A collection of graphic lines. | |
| Groups |
readonly | A collection of groups. | |
| Guides |
readonly | A collection of guides. | |
| Number | readonly | The unique ID of the Layer. | |
| Boolean | 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. | |
| Number | readonly | The index of the Layer within its containing object. | |
| Boolean | readonly | Returns true if the object specifier resolves to valid objects. | |
| String | read/write | A property that can be set to any string. | |
| 3 Reals (0 - 255)[] | UIColors[] | 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. | |
| ListBoxes |
readonly | A collection of listboxes. | |
| Boolean | read/write | If true, the guide positions on the layer are locked. | |
| Boolean | read/write | If true, the Layer is locked. | |
| MultiStateObjects |
readonly | A collection of multi-state objects. | |
| String | read/write | The name of the Layer. | |
| Ovals |
readonly | A collection of ellipses. | |
| PageItems |
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. | |
| Document | readonly | The parent of the Layer (a Document). | |
| Polygons |
readonly | A collection of polygons. | |
| Boolean | read/write | If true, the layer will print. | |
| Object | read/write | A property that allows setting of several properties at the same time. | |
| RadioButtons |
readonly | A collection of radio buttons. | |
| Rectangles |
readonly | A collection of rectangles. | |
| Boolean | read/write | If true, guides are visible on the layer. | |
| SignatureFields |
readonly | A collection of signature fields. | |
| SplineItems |
readonly | The spline items collection. | |
| TextBoxes |
readonly | A collection of text boxes. | |
| TextFrames |
readonly | A collection of text frames. | |
| Boolean | read/write | If true, the Layer is visible. |
Methods
→ Layer
Duplicates the Layer.
→ String
Gets the label value associated with the specified key.
→ Layer[]
Resolves the object specifier, creating an array of object references.
→ void
Sets the label to the value associated with the specified key.
→ Layer
Merges the layer with other layer(s).
→ Layer
Moves the Layer to the specified location.
→ void
Deletes the Layer.
→ Boolean
Removes the event listener.
→ String
Generates a string which, if executed, will return the Layer.
→ String
Retrieves the object specifier.
Object of 36
Properties elsewhere that hold a Layer.
Button.itemLayerCheckBox.itemLayerComboBox.itemLayerDocument.activeLayerEPS.itemLayerEPSText.itemLayerEndnoteTextFrame.itemLayerEvent.parentEventListener.parentFormField.itemLayerGraphic.itemLayerGraphicLine.itemLayerGroup.itemLayerGuide.itemLayerHtmlItem.itemLayerImage.itemLayerImportedPage.itemLayerListBox.itemLayerMediaItem.itemLayerMovie.itemLayerMultiStateObject.itemLayerMutationEvent.parentOval.itemLayerPDF.itemLayerPICT.itemLayerPageItem.itemLayerPolygon.itemLayerRadioButton.itemLayerRectangle.itemLayerSVG.itemLayerSignatureField.itemLayerSound.itemLayerSplineItem.itemLayerTextBox.itemLayerTextFrame.itemLayerWMF.itemLayer
Parameter of 100
Method parameters that accept a Layer.
Button.duplicate(to)Button.move(to)Buttons.add(layer)CheckBox.duplicate(to)CheckBox.move(to)CheckBoxes.add(layer)ComboBox.duplicate(to)ComboBox.move(to)ComboBoxes.add(layer)Document.createFromMathML(destinationLayer)Document.createTOC(destinationLayer)EPS.duplicate(to)EPS.move(to)EPSText.duplicate(to)EPSText.move(to)EndnoteTextFrame.duplicate(to)EndnoteTextFrame.move(to)EndnoteTextFrames.add(layer)FormField.duplicate(to)FormField.move(to)FormFields.add(layer)Graphic.duplicate(to)Graphic.move(to)GraphicLine.duplicate(to)GraphicLine.move(to)GraphicLines.add(layer)Group.duplicate(to)Group.move(to)Groups.add(layer)Guides.add(layer)HtmlItem.duplicate(to)HtmlItem.move(to)HtmlItems.add(layer)Image.duplicate(to)Image.move(to)ImportedPage.duplicate(to)ImportedPage.move(to)Index_.generate(destinationLayer)Layer.merge(with)Layer.move(reference)Layers.itemByRange(from)Layers.nextItem(obj)Layers.previousItem(obj)ListBox.duplicate(to)ListBox.move(to)ListBoxes.add(layer)MasterSpread.contentPlace(destinationLayer)MasterSpread.createGuides(layer)MasterSpread.place(destinationLayer)MasterSpread.placeAndLink(destinationLayer)MathObjects.add(destinationLayer)MediaItem.duplicate(to)MediaItem.move(to)Movie.move(to)Movies.add(layer)MultiStateObject.duplicate(to)MultiStateObject.move(to)MultiStateObjects.add(layer)Oval.duplicate(to)Oval.move(to)Ovals.add(layer)PDF.duplicate(to)PDF.move(to)PICT.duplicate(to)PICT.move(to)Page.contentPlace(destinationLayer)Page.place(destinationLayer)Page.placeAndLink(destinationLayer)PageItem.duplicate(to)PageItem.move(to)Polygon.duplicate(to)Polygon.move(to)Polygons.add(layer)RadioButton.duplicate(to)RadioButton.move(to)RadioButtons.add(layer)Rectangle.duplicate(to)Rectangle.move(to)Rectangles.add(layer)SVG.duplicate(to)SVG.move(to)SignatureField.duplicate(to)SignatureField.move(to)SignatureFields.add(layer)Sound.move(to)Sounds.add(layer)SplineItem.duplicate(to)SplineItem.move(to)Spread.contentPlace(destinationLayer)Spread.createGuides(layer)Spread.place(destinationLayer)Spread.placeAndLink(destinationLayer)TextBox.duplicate(to)TextBox.move(to)TextBoxes.add(layer)TextFrame.duplicate(to)TextFrame.move(to)TextFrames.add(layer)WMF.duplicate(to)WMF.move(to)
Return 17
Methods that return a Layer.