|
using System;
|
|
|
|
namespace Ooui
|
|
{
|
|
public class TextNode : Node
|
|
{
|
|
string text = "";
|
|
public override string Text {
|
|
get => text;
|
|
set => SetProperty (ref text, value ?? "", "data");
|
|
}
|
|
|
|
public TextNode ()
|
|
: base ("#text")
|
|
{
|
|
}
|
|
|
|
public TextNode (string text)
|
|
: this ()
|
|
{
|
|
Text = text;
|
|
}
|
|
}
|
|
}
|