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
dc
GraphicsDrawing context.
brush
BrushBrush to draw border.
rect
RectDBorder rectangle.
borderWidth
doubleBorder 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)