Table of Contents

Method DrawDoubleBorder

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

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

canvas Graphics

Graphics where drawing is performed.

rect RectD

RectD where drawing is performed.

innerColor Color

Inner border color.

outerColor Color

Outer border color.

Returns

RectD

Value of the rect parameter deflated by number of the painted borders (0, 1 or 2).

Remarks

If border color is Empty it is not painted.