Table of Contents

Method DrawBorderWithBrush

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 Graphics

Drawing context.

brush Brush

Brush to draw border.

rect RectD

Border rectangle.

borderWidth double

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)

Parameters

dc Graphics

Drawing context.

brush Brush

Brush to draw border.

rect RectD

Border rectangle.

borderWidth Thickness

Border width.