MTExample4_1.PlotPanel.Draw C# (CSharp) Method

Draw() public method

public Draw ( CGRect rect ) : void
rect CGRect
return void
        public override void Draw(CGRect rect)
        {
            if (Paint != null) {
                Graphics g = Graphics.FromCurrentContext();
                var clip = new CGRect ((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height);
                var args = new PaintEventArgs (g, clip);
                Paint(this, args);
            }
        }