Ooui-tws-port/Ooui/TextArea.cs

36 lines
779 B
C#
Raw Normal View History

2017-06-16 06:15:26 +00:00
using System;
namespace Ooui
{
public class TextArea : Element
{
public event EventHandler Changed {
add => AddEventListener ("change", value);
remove => RemoveEventListener ("change", value);
}
string text = "";
public override string Text {
get => text;
set => SetProperty (ref text, value, "value");
}
int rows = 2;
public int Rows {
get => rows;
set => SetProperty (ref rows, value, "rows");
}
2017-06-16 06:17:21 +00:00
int cols = 20;
2017-06-16 06:15:26 +00:00
public int Columns {
get => cols;
set => SetProperty (ref cols, value, "cols");
}
public TextArea ()
: base ("textarea")
{
}
}
}