property right

(r/w) styleVariant right;

Typ

Zugriff

This property is used to get and set the right rectangle value for a style variant.
function onSample()
{
    var rootBox = scene.rootBox;
    if (rootBox)
    {
        var styleVar = rootBox.getStyle("margin");
        if (styleVar && !styleVar.isNull)
        {
            var rectValue = styleVar.rectValue;
            if (rectValue)
            {
                var right = rectValue.right;
                if (right && !right.isNull)
                {
                    shell.print("right = " + right.intValue);
                }
            }
        }
    }
}