property rectValue

(r/w) styleRect rectValue;

Typ

Zugriff

This property is used to get and set the rectangle value for the style variant. The return/input type is a StyleRect object. For more information please see StyleRect class.
function onSample()
{
    var rootBox = scene.rootBox;
    if (rootBox)
    {
        var styleVar = rootBox.getStyle("margin");
        if (styleVar && !styleVar.isNull)
        {
            var rectValue = styleVar.rectValue;
            if (rectValue)
            {
                var top = rectValue.top;
                if (top && !top.isNull)
                {
                    shell.print("top = " + top.intValue);
                }
            }
        }
    }
}