AddLegend() 공개 메소드

public AddLegend ( Graphics g, DataCollection dc, ChartStyle cs ) : void
g System.Drawing.Graphics
dc DataCollection
cs ChartStyle
리턴 void
예제 #1
0
        public override void Draw(CGRect rect)
        {
            var g = Graphics.FromCurrentContext();

            cs.ChartArea = ClientRectangle;
            AddData();
            SetPlotArea(g);
            cs.AddChartStyle(g);
            dc.AddLines(g, cs);
            lg.AddLegend(g, dc, cs);
            g.Dispose();
        }
		public override void Draw (RectangleF dirtyRect)
		{
			Graphics g = new Graphics();

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