Table of Contents

Method DrawText

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

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

Draws text within a specified rectangle on the provided graphics context.

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

Parameters

dc Graphics

The graphics context used for drawing the text.

rect RectD

The rectangle that defines the area where the text will be drawn.

font Font

The font used to render the text.

foreColor Color

The color of the text.

backColor Color

The background color behind the text.

Remarks

The text is aligned within the specified rectangle according to the current text alignment settings.