property styleId

(r/w) string styleId;

Typ

Zugriff

This property sets and gets the style for this box. It is equivalent to using the style attribute in markup.
function ChangeStyleForBox(box, styleid)
{
    if (box)
    {
        var theScene = box.scene;
        var otherBoxId = box.getAttribute("relatedBoxId");
        if (theScene && otherBoxId && (otherBoxId != ""))
        {
            var relBox = theScene.getBoxById(otehrBoxId);
            if (relBox)
                relBox.styleId = styleid;
        }
    }
}