Alsing.Drawing.DrawingTools.DrawDesignTimeBorder C# (CSharp) Method

DrawDesignTimeBorder() public static method

public static DrawDesignTimeBorder ( Graphics g, Rectangle rect ) : void
g System.Drawing.Graphics
rect System.Drawing.Rectangle
return void
        public static void DrawDesignTimeBorder(Graphics g, Rectangle rect)
        {
            rect.Width --;
            rect.Height --;
            var p = new Pen(SystemColors.ControlDarkDark) {DashStyle = DashStyle.Dash};
            g.DrawRectangle(p, rect);
            p.Dispose();
        }