Once you've used the Profile variable to get a layer, you can access it's properties and functions.
In the same way a profile contains layers, a layer can also contain layers (children). These can be retrieved using the functions described below
Properties
| Name |
Type |
Description |
Get |
Set |
| Name |
string |
Returns or sets the name of the layer. |
Yes |
Yes |
| Enabled |
boolean |
Returns or sets whether the layer is an event or not. |
Yes |
Yes |
| IsEvent |
boolean |
Returns or sets whether the layer is an event or not. |
Yes |
Yes |
| Parent |
layer |
Returns the parent layer of the layer. |
Yes |
No |
| X |
int |
Returns or sets the X position of the layer. |
Yes |
Yes |
| Y |
int |
Returns or sets the Y position of the layer. |
Yes |
Yes |
| Width |
int |
Returns or sets the width of the layer. |
Yes |
Yes |
| Height |
int |
Returns or sets the height of the layer. |
Yes |
Yes |
| Contain |
boolean |
Returns or sets whether the layer's brush must be contained or not. |
Yes |
Yes |
| AnimationSpeed |
double |
Returns or sets the animation speed of the layer. |
Yes |
Yes |
| AnimationProgress |
double |
Returns or sets the animation progress of the layer. |
Yes |
Yes |
| BrushType |
string |
Returns brush type of the layer. |
Yes |
No |
| Brush |
brush |
Returns or sets brush of the layer. |
Yes |
Yes |
Example:
Functions
GetChildren
Returns all child layers within the layer
Syntax:
Example:
Result:
GetChildByName
If found, returns the first child layer with the given name.
Syntax:
Example:
Result: