Method DrawBorderWithBrush
DrawBorderWithBrush(Graphics, Brush, RectD, double)
Draws rectangle border using the specified brush and FillRectangle(Brush, RectD). This method doesn't fill background, it only draws border.
public static void DrawBorderWithBrush(this Graphics dc, Brush brush, RectD rect, double borderWidth = 1)Parameters
- dcGraphics
- Drawing context. 
- brushBrush
- Brush to draw border. 
- rectRectD
- Border rectangle. 
- borderWidthdouble
- Border width. 
DrawBorderWithBrush(Graphics, Brush, RectD, Thickness)
Draws rectangle border using the specified brush and FillRectangle(Brush, RectD). This method doesn't fill background, it only draws border.
public static void DrawBorderWithBrush(this Graphics dc, Brush brush, RectD rect, Thickness borderWidth)