property text

(r/w) string text;

Typ

Zugriff

This property sets and gets the document content as plain text. When settings the text, the current document content is replaced with the new data.
function ExchangeContent(newTextContent)
{
    var box = scene.getBoxById("myHtmlBox");
    if (box)
    {
        if (box.hasContent())
        {
            SaveOffOldContent(box.text);
        }
        box.text = newTextContent;
    }
}