Table of Contents

Method DrawText

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

DrawText(string, Font, Brush, PointD)

Draws the specified text string at the specified location with the specified Brush and Font objects.

public override void DrawText(string text, Font font, Brush brush, PointD origin)

Parameters

text string

String to draw.

font Font

Font that defines the text format of the string.

brush Brush

Brush that determines the color and texture of the drawn text.

origin PointD

PointD structure that specifies the upper-left corner of the drawn text.

DrawText(string, PointD, Font, Color, Color)

Draws text with the specified font, background and foreground colors.

public override void DrawText(string text, PointD location, Font font, Color foreColor, Color backColor)

Parameters

text string

Text to draw.

location PointD

Location 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.

DrawText(string, Font, Brush, RectD)

Draws the specified text string at the specified location with the specified Brush and Font objects.

public override void DrawText(string text, Font font, Brush brush, RectD bounds)

Parameters

text string

String to draw.

font Font

Font that defines the text format of the string.

brush Brush

Brush that determines the color and texture of the drawn text.

bounds RectD

RectD structure that specifies the bounds of the drawn text.