"layer"
    
    Defines the layer of a shape.
Synopsis
int shape.layer(int layerNr);
Parameters
| Parameter | Description | 
|---|---|
| shape | The specified shape. | 
| layerNr | Number of the panel layer (Index range: 1 to 8) | 
Description
The function reads and writes in which layer a shape is. The layer index starts with 1 and includes all 8 available layers.
Note: 
            This function is read-only for any shape from a panel reference.
Note: 
        This function cannot be used to change parts of or an entire panel reference.
Set the layer for a shape to 4:
this.layer = 4;
        Assignment
All Graphic Objects
