Table of Contents

Method DrawBackground

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

DrawBackground(IPainter, Rectangle, Color, Color)

Draws the control background within the specified rectangle with current theme.

public static void DrawBackground(IPainter painter, Rectangle rect, Color startColor, Color endColor)

Parameters

painter IPainter

Specifies IPainter object used to draw text and graphic primitives.

rect Rectangle

The Rectangle that represents the dimensions of the control.

startColor Color

Specifies start background color for gradient background painting when no theme is available.

endColor Color

Specifies end background color for gradient background painting when no theme is available.