aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI/TextControl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Frontend/GUI/TextControl.cs')
-rw-r--r--ShiftOS.Frontend/GUI/TextControl.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/ShiftOS.Frontend/GUI/TextControl.cs b/ShiftOS.Frontend/GUI/TextControl.cs
index 06d8233..c8eb56b 100644
--- a/ShiftOS.Frontend/GUI/TextControl.cs
+++ b/ShiftOS.Frontend/GUI/TextControl.cs
@@ -13,6 +13,30 @@ namespace ShiftOS.Frontend.GUI
private TextAlign _textAlign = TextAlign.TopLeft;
private Font _font = new Font("Tahoma", 9f);
+ public string Text
+ {
+ get { return _text; }
+ set { _text = value; }
+ }
+
+ public Font Font
+ {
+ get
+ {
+ return _font;
+ }
+ set
+ {
+ _font = value;
+ }
+ }
+
+ public TextAlign TextAlign
+ {
+ get { return _textAlign; }
+ set { _textAlign = value; }
+ }
+
public override void Paint(Graphics gfx)
{
var sMeasure = gfx.MeasureString(_text, _font);