Exemplo n.º 1
0
        public override void Draw(Graphics g)
        {
            base.Draw(g);
            sf = SizeF.Empty;
            for (int i = 0; i < split.Length; i++)
            {
                try
                {
                    ObjectFont.DrawString(GetStr(i), g, GetRect(i));
                }
                catch
                {
                }
            }

            Pen       P  = LinePen.GetPen();
            PointF    p1 = ToPointF(ControlPoints[0]);
            PointF    p2 = ToPointF(ControlPoints[1]);
            Rectangle R  = Area.Canvas.Rect;

            if (InMove && p1 != PointF.Empty && p2 != PointF.Empty)
            {
                g.DrawLine(P, p1.X, p1.Y, p2.X, p2.Y);
            }
        }
Exemplo n.º 2
0
		public override void PaintValue(PaintValueEventArgs e)
		{
			ObjectFont of = (ObjectFont)e.Value;
			TextRenderingHint trh = e.Graphics.TextRenderingHint;
			e.Graphics.TextRenderingHint = TextRenderingHint.AntiAlias;
			of.DrawString("A",e.Graphics,e.Bounds);
			e.Graphics.TextRenderingHint  = trh;
			base.PaintValue (e);
		}
Exemplo n.º 3
0
 public override void Draw(Graphics g)
 {
     base.Draw(g);
     if (showCycleText)
     {
         for (int i = 0; i < pfStart.Length; i++)
         {
             string s = GetStr(i);
             ObjectFont.DrawString(s, g, GetRect(s, i));
         }
     }
 }
Exemplo n.º 4
0
 public override void Draw(Graphics g)
 {
     base.Draw(g);
     sf = SizeF.Empty;
     for (int i = 0; i < split.Length; i++)
     {
         try
         {
             ObjectFont.DrawString(GetStr(i), g, GetRect(i));
         }
         catch
         {
         }
     }
 }
Exemplo n.º 5
0
        public override void Draw(Graphics g)
        {
            base.Draw(g);

            string s = GetStr();

            if (s != null)
            {
                s = s.Trim();
                RectangleF TextRect = GetTextRect();
                RectangleF R        = ObjectFont.GetTextBackRect(s, g, TextRect);
                R.Height--;
                if (ObjectFont.LineAlignment == StringAlignment.Near)
                {
                    R.Y++;
                }

                if (textBackBrush != null)
                {
                    if (textBackBrush.BrushStyle != BrushMapperStyle.Empty)
                    {
                        Brush B = textBackBrush.GetBrush(R);
                        g.FillRectangle(B, R);
                    }
                }
                if (textFramePen != null)
                {
                    if (textFramePen.Alpha > 0)
                    {
                        Pen P = textFramePen.GetPen();
                        g.DrawRectangles(P, new RectangleF[] { R });
                    }
                }
                ObjectFont.DrawString(s, g, GetTextRect());
            }
        }