diff options
| author | Michael <[email protected]> | 2017-07-02 14:09:07 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-07-02 14:09:07 -0400 |
| commit | 5d5f351138b55b27fe92690d824257b6b6e1a469 (patch) | |
| tree | 72d5fd89943bd6600d8348f350013687a219ac8f /ShiftOS.Frontend/GUI/TextControl.cs | |
| parent | dad09c9e7c1ff68a157836b636f13f25d27e050a (diff) | |
| download | shiftos_thereturn-5d5f351138b55b27fe92690d824257b6b6e1a469.tar.gz shiftos_thereturn-5d5f351138b55b27fe92690d824257b6b6e1a469.tar.bz2 shiftos_thereturn-5d5f351138b55b27fe92690d824257b6b6e1a469.zip | |
Mouse cursor
Diffstat (limited to 'ShiftOS.Frontend/GUI/TextControl.cs')
| -rw-r--r-- | ShiftOS.Frontend/GUI/TextControl.cs | 24 |
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); |
