Table of Contents

Method DrawText

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

DrawText(Graphics, RectD, Font, Color, Color)

Paints text on the canvas.

public virtual void DrawText(Graphics dc, RectD rect, Font font, Color foreColor, Color backColor)

Parameters

dc Graphics

Graphics context.

rect RectD

Bounding rectangle used to draw the text.

font Font

Font used to draw the text.

foreColor Color

Foreground color of the text.

backColor Color

Background color of the text. If parameter is equal to Empty, background will not be painted.