|
using System;
using System.Drawing;
using NeoDataType.Graphic;
using NeoDataType.Documents;
namespace GraphicTest
{
[SaveThisClass()]
class GraphicText : GraphicItem
{
string _text = "Button";
bool _center = false;
Font _font = new Font(FontFamily.GenericSansSerif, 9);
public GraphicText()
{
Height = 30;
AntiAlias = true;
Painter = new TextPainter();
}
[SaveThisProperty()]
public bool CenterText
{
get { return _center; }
set
{
_center = value;
PropertyChanged();
}
}
[SaveThisProperty(typeof(FontFormatter))]
public Font Font
{
get { return _font; }
set
{
_font = value;
PropertyChanged();
}
}
[SaveThisProperty()]
public string Text
{
get { return _text; }
set
{
_text = value;
PropertyChanged();
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.