SetChartArea() public method

public SetChartArea ( Graphics g ) : void
g System.Drawing.Graphics
return void
コード例 #1
0
        public override void DrawRect(System.Drawing.RectangleF dirtyRect)
        {
            var g = new Graphics();

            g.Clear(backColor);

            cs.ChartArea = this.ClientRectangle;
            cs.SetChartArea(g);
        }
コード例 #2
0
        public override void DrawRect(CGRect dirtyRect)
        {
            var g = Graphics.FromCurrentContext();

            g.Clear(backColor);

            cs.ChartArea = this.ClientRectangle;
            cs.SetChartArea(g);
        }