AddLines() public method

public AddLines ( Graphics g, ChartStyle cs ) : void
g System.Drawing.Graphics
cs ChartStyle
return void
        public override void Draw(RectangleF dirtyRect)
        {
            Graphics g = new Graphics();

            cs.ChartArea = this.ClientRectangle;
            SetPlotArea(g);
            AddData(g);
            cs.AddChartStyle(g);
            dc.AddLines(g, cs);
            lg.AddLegend(g, dc, cs);
            g.Dispose();
        }
示例#2
0
        public override void Draw(CGRect rect)
        {
            Graphics g = Graphics.FromCurrentContext();

            cs.ChartArea = ClientRectangle;
            SetPlotArea(g);
            AddData(g);
            cs.AddChartStyle(g);
            dc.AddLines(g, cs);
            lg.AddLegend(g, dc, cs);
            g.Dispose();
        }