layer

A layer.

layer elements

Name Refer to By
buttons by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
form fields by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
graphic lines by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
groups by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
guides by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
ovals by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
page items by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
polygons by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
rectangles by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
text frames by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID

layer properties

Property Type Access Description
all graphics list of graphics read All graphics contained by the object.
all page items list of page items read All page items contained by the object.
class integer read The class descriptor type.
id integer read A unique number identifying the object.
ignore wrap boolean r/w If true, text wrap on this layer will be ignored when the layer is hidden.
index integer read Index of the object within its parent object.
label string r/w A label that can be set to any string.
layer color list of 3 fixed (0 – 255), UI colors enumeration r/w The color of the layer.
lock guides boolean r/w If true, guides on this layer are locked.
locked boolean r/w If true, the object is locked.
name string r/w The name of the object.
object reference object read An object reference for this object.
parent object read The parent of the object.
properties record r/w Property that allows setting of several properties at the same time.
show guides boolean r/w If true, guides on this layer are shown.
visible boolean r/w If true, the layer is visible.

layer methods

Method Returns Description
delete Nothing Delete the object.
duplicate object Duplicates the object.
extract label string Gets the content of the label associated with the specified key (name).
insert label Nothing Sets the content of the label associated with the specified key (name), creating the
label if it does not already exist.
merge layer Merge with another layer.
move object Move the Layer before/after another Layer, or to beginning/end.

Leave a Comment

Previous post:

Next post: