public override void DrawPoints(Graphics g) { base.DrawPoints(g); RectangleF rect = GetTextRect(); //SolidBrush BackgroundBrush = this.DrawBrush; //BackgroundBrush.Color = m_SolidBrush; myGraphicsPath.AddRectangle(rect); myGraphicsPath.Transform(myPathMatrix); if (FillOptions.BrushType != LCBrushType.Blank && !Background) { g.FillPath(m_SolidBrush, myGraphicsPath); //myGraphicsPath.Reset(); } if (IsBorder) { g.DrawPath(DrawPen, myGraphicsPath); } // myGraphicsPath.Reset(); // Single FontYSize = g.DpiY * DrawFont.SizeInPoints / 72; //Single FontXSize = g.DpiX * DrawFont.SizeInPoints / 72; //myGraphicsPath.Transform(myPathMatrix); //g.FillPath(FontBrush, myGraphicsPath); //g.DrawPath(TextPen, myGraphicsPath); DateTime now = DateTime.Now; string str1 = FExpression.execStr(); /*if (FExpression.ExpressType == LCExpressType.Expression) * {//性能测试 * DateTime startTime = DateTime.Now; * for (int k = 0; k < 100000; k++) * { * str1 = FExpression.exec(TextFormat); * } * DateTime endTime = DateTime.Now; * * Debug.WriteLine(FExpression.Exipression +":"+ ((TimeSpan)(endTime - startTime)).TotalMilliseconds); * } * else * { * str1 = FExpression.exec(TextFormat); * }*/ StringFormat format1 = new StringFormat(StringFormatFlags.LineLimit); g.DrawString(str1, DrawFont, FontBrush, rect, TextFormat); //g.DrawString }
public string GetValue() { return(FExpression.execStr()); }