23 lines
386 B
C#
23 lines
386 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 ()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public TextNode (string text)
|
||
|
{
|
||
|
Text = text;
|
||
|
}
|
||
|
}
|
||
|
}
|