Method DrawDoubleBorder
DrawDoubleBorder(Graphics, RectD, Color, Color)
Draws inner and outer border with the specified colors.
public static RectD DrawDoubleBorder(this Graphics canvas, RectD rect, Color innerColor, Color outerColor)Parameters
- canvasGraphics
- Graphics where drawing is performed. 
- rectRectD
- RectD where drawing is performed. 
- innerColorColor
- Inner border color. 
- outerColorColor
- Outer border color. 
Returns
- RectD
- Value of the - rectparameter deflated by number of the painted borders (0, 1 or 2).
Remarks
If border color is Empty it is not painted.