Ooui-tws-port/Ooui/TextNode.cs

30 lines
549 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;
}
public override void WriteOuterHtml (System.Xml.XmlWriter w)
{
w.WriteString (text);
}
}
}