Ejemplo n.º 1
0
        void tChart1_AfterDraw(object sender, Drawing.Graphics3D g)
        {
            int yValue = 75, xValue = 30;

            g.Font.Size    = 20;
            g.Font.Color   = Color.Yellow;
            g.Font.Quality = System.Drawing.Text.TextRenderingHint.AntiAlias;
            g.TextOut(xValue, yValue, "The quick brown fox jumped over the lazy dog.");
            g.Font.Quality            = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
            g.TextOut(xValue, yValue += 50, "The quick brown fox jumped over the lazy dog.");
            g.Font.Quality            = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            g.TextOut(xValue, yValue += 50, "The quick brown fox jumped over the lazy dog.");
            g.Font.Quality            = System.Drawing.Text.TextRenderingHint.SingleBitPerPixel;
            g.TextOut(xValue, yValue += 50, "The quick brown fox jumped over the lazy dog.");
            g.Font.Quality            = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
            g.TextOut(xValue, yValue += 50, "The quick brown fox jumped over the lazy dog.");
            g.Font.Quality            = System.Drawing.Text.TextRenderingHint.SystemDefault;
            g.TextOut(xValue, yValue += 50, "The quick brown fox jumped over the lazy dog.");
        }
Ejemplo n.º 2
0
 void tChart1_BeforeDraw(object sender, Drawing.Graphics3D g)
 {
     lineSeries.Brush.Gradient.CustomTargetRectangle = tChart1.Chart.ChartRect;
 }