Ooui-tws-port/Ooui/TextNode.cs

34 lines
570 B
C#
Raw Normal View History

2017-06-14 04:17:50 +00:00
using System;
namespace Ooui
{
public class TextNode : Node
{
string text = "";
public override string Text {
get => text;
set => SetProperty (ref text, value ?? "", "data");
}
public TextNode ()
2017-06-15 06:20:51 +00:00
: base ("#text")
2017-06-14 23:48:42 +00:00
{
2017-06-14 04:17:50 +00:00
}
public TextNode (string text)
2017-06-15 06:20:51 +00:00
: this ()
2017-06-14 04:17:50 +00:00
{
Text = text;
}
2018-02-02 04:18:16 +00:00
#if !NO_XML
2018-02-02 04:18:16 +00:00
public override void WriteOuterHtml (System.Xml.XmlWriter w)
{
w.WriteString (text);
}
#endif
2017-06-14 04:17:50 +00:00
}
}