Ooui-tws-port/Ooui/TextNode.cs

25 lines
425 B
C#

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;
}
}
}