public GDI_BrokenLine(List <PointF> pts) : base(pts) { tools = new GDIPlusTools(this, this, pts.GetBounds()); tools.Drawing += Tools_Drawing; //tools.Preparing += Tools_Preparing; PropertyChanged += GDI_BrokenLine_PropertyChanged; }
public GDI_Ellipse(PointF location, SizeF size) : base(location, size) { rect = new RectangleF(location, size); tools = new GDIPlusTools(this, this, rect); tools.Drawing += Tools_Drawing; PropertyChanged += GDI_Ellipse_PropertyChanged; //tools.Preparing += Tools_Preparing; }
public GDI_Text() : base() { tools = new GDIPlusTools(this, this, new RectangleF(location, stringSize)); tools.Drawing += Tools_Drawing; //tools.Preparing += Tools_Preparing; PropertyChanged += GDI_Text_PropertyChanged; font = new Font(FamilyName, FontSize, GraphicsUnit.Pixel); sf = new StringFormat { Alignment = alignment, LineAlignment = lineAlignment, Trimming = trimming }; brush = new SolidBrush(textColor); }