property colorValue

(r/w) uint32 colorValue;

Typ

Zugriff

This property is used to get and set the color value for the style variant.
function onSample()
{
    var rootBox = scene.rootBox;
    if (rootBox)
    {
        var styleVar = rootBox.getStyle("fill");
        if (styleVar && !styleVar.isNull)
        {
            shell.print("value = 0x" + styleVar.colorValue.toString(16).toLowerCase());
        }
    }
}