Method DrawBorderWithBrush
DrawBorderWithBrush(Graphics, Brush, RectD, float)
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, float borderWidth = 1)
Parameters
dcGraphicsDrawing context.
brushBrushBrush to draw border.
rectRectDBorder rectangle.
borderWidthfloatBorder 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)