Kanzi 3.9.10
Screen Interface Reference

Get or set the first child 2D node of the Screen node. More...

Properties

Node2D PreviewRootLayer2D [get, set]
 Gets or sets the first child 2D node of the Screen node that the Preview uses.
 
Node2D RootNode2D [get, set]
 Gets or sets the first child 2D node of the Screen node.
 

Detailed Description

Get or set the first child 2D node of the Screen node.

Property Documentation

◆ PreviewRootLayer2D

Node2D PreviewRootLayer2D
getset

Gets or sets the first child 2D node of the Screen node that the Preview uses.

The first child 2D node of the Screen node that the Preview uses.

See also
Project.Screen

◆ RootNode2D

Node2D RootNode2D
getset

Gets or sets the first child 2D node of the Screen node.

The Screen node can have only one child node. This child node can be any 2D node.

The first child 2D node of the Screen node.

See also
Project.Screen

Examples

Get the first child 2D node of the Screen node:

{
// Get the 2D node under the Screen node.
var rootNode = studio.ActiveProject.Screen.RootNode2D;
// Print to the Log window the name of the 2D node under the Screen node.
studio.Log(rootNode.Name);
}