property unit

(r/w) int32 unit;

Typ

Zugriff

This property is used to get and set the unit for the style variant. The valid unit values:
function onSample()
{
    var rootBox = scene.rootBox;
    if (rootBox)
    {
        var styleVar = rootBox.getStyle("top");
        if (styleVar)
        {
            shell.print("unit = " + styleVar.unit);
        }
    }
}