Table of Contents

Method DrawText

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

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

Draws the specified text at the specified location using the specified device context, font, and color.

public static void DrawText(Graphics dc, string text, Font font, PointD pt, Color foreColor)

Parameters

dc Graphics

The device context in which to draw the text.

text string

The text to draw.

font Font

The Font to apply to the drawn text.

pt PointD

The PointD that represents the upper-left corner of the drawn text.

foreColor Color

The Color to apply to the drawn text.

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

Draws the specified text at the specified location, using the specified device context, font, color, and back color.

public static void DrawText(Graphics dc, string text, Font font, PointD pt, Color foreColor, Color backColor)

Parameters

dc Graphics

The device context in which to draw the text.

text string

The text to draw.

font Font

The Font to apply to the drawn text.

pt PointD

The PointD that represents the upper-left corner of the drawn text.

foreColor Color

The Color to apply to the drawn text.

backColor Color

The Color to apply to the background area of the drawn text.

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

Draws the specified text within the specified bounds, using the specified device context, font, and color.

public static void DrawText(Graphics dc, string text, Font font, RectD bounds, Color foreColor)

Parameters

dc Graphics

The device context in which to draw the text.

text string

The text to draw.

font Font

The Font to apply to the drawn text.

bounds RectD

The RectD that represents the bounds of the text.

foreColor Color

The Color to apply to the drawn text.

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

Draws the specified text within the specified bounds using the specified device context, font, color, and back color.

public static void DrawText(Graphics dc, string text, Font font, RectD bounds, Color foreColor, Color backColor)

Parameters

dc Graphics

The device context in which to draw the text.

text string

The text to draw.

font Font

The Font to apply to the drawn text.

bounds RectD

The RectD that represents the bounds of the text.

foreColor Color

The Color to apply to the drawn text.

backColor Color

The Color to apply to the area represented by bounds.

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

Draws the specified text at the specified location using the specified device context, font, color, and formatting instructions.

public static void DrawText(Graphics dc, string text, Font font, PointD pt, Color foreColor, TextFormatFlags flags)

Parameters

dc Graphics

The device context in which to draw the text.

text string

The text to draw.

font Font

The Font to apply to the drawn text.

pt PointD

The PointD that represents the upper-left corner of the drawn text.

foreColor Color

The Color to apply to the drawn text.

flags TextFormatFlags

A bitwise combination of the TextFormatFlags values.

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

Draws the specified text at the specified location using the specified device context, font, color, back color, and formatting instructions

public static void DrawText(Graphics dc, string text, Font font, PointD pt, Color foreColor, Color backColor, TextFormatFlags flags)

Parameters

dc Graphics

The device context in which to draw the text.

text string

The text to draw.

font Font

The Font to apply to the drawn text.

pt PointD

The PointD that represents the upper-left corner of the drawn text.

foreColor Color

The Color to apply to the text.

backColor Color

The Color to apply to the background area of the drawn text.

flags TextFormatFlags

A bitwise combination of the TextFormatFlags values.

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

Draws the specified text within the specified bounds using the specified device context, font, color, and formatting instructions.

public static void DrawText(Graphics dc, string text, Font font, RectD bounds, Color foreColor, TextFormatFlags flags)

Parameters

dc Graphics

The device context in which to draw the text.

text string

The text to draw.

font Font

The Font to apply to the drawn text.

bounds RectD

The RectD that represents the bounds of the text.

foreColor Color

The Color to apply to the drawn text.

flags TextFormatFlags

A bitwise combination of the TextFormatFlags values.

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

Draws the specified text within the specified bounds using the specified device context, font, color, back color, and formatting instructions.

public static void DrawText(Graphics dc, string text, Font font, RectD bounds, Color foreColor, Color backColor, TextFormatFlags flags)

Parameters

dc Graphics

The device context in which to draw the text.

text string

The text to draw.

font Font

The Font to apply to the drawn text.

bounds RectD

The RectD that represents the bounds of the text.

foreColor Color

The Color to apply to the text.

backColor Color

The Color to apply to the area represented by bounds.

flags TextFormatFlags

A bitwise combination of the TextFormatFlags values.