NPlot.Windows.PlotSurface2D.drawDesignMode C# (CSharp) Method

drawDesignMode() private method

Draw a lightweight representation of us for design mode.
private drawDesignMode ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics
bounds System.Drawing.Rectangle
return void
        private void drawDesignMode(Graphics g, Rectangle bounds)
        {
            g.DrawRectangle(new Pen(Color.Black), bounds.X + 2, bounds.Y + 2, bounds.Width - 4, bounds.Height - 4);
            g.DrawString("PlotSurface2D: " + this.Title, this.TitleFont, this.TitleBrush, bounds.X + bounds.Width / 2.0f, bounds.Y + bounds.Height / 2.0f);
        }