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