Method DrawText
DrawText(string, Font, Brush, PointD)
void DrawText(string text, Font font, Brush brush, PointD origin)
Parameters
textstringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
originPointDPointD structure that specifies the upper-left corner of the text position on the canvas.
DrawText(string, PointD)
Draws text with DefaultFont and Default.
void DrawText(string text, PointD origin)
Parameters
textstringString to draw.
originPointDPointD structure that specifies the upper-left corner of the text position on the canvas.
DrawText(string, Font, Brush, RectD)
void DrawText(string text, Font font, Brush brush, RectD bounds)
Parameters
textstringString to draw.
fontFontFont that defines the text format of the string.
brushBrushBrush that determines the color and texture of the drawn text.
boundsRectDRectD structure that specifies the bounds of the drawn text.
DrawText(string, PointD, Font, Color, Color)
Draws text with the specified font, background and foreground colors. This is the fastest method to draw text.
void DrawText(string text, PointD location, Font font, Color foreColor, Color backColor)