MTExample4_1.PlotPanel.Draw C# (CSharp) 메소드

Draw() 공개 메소드

public Draw ( CGRect rect ) : void
rect CGRect
리턴 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);
            }
        }