Method DrawText
DrawText(string, Font, Brush, PointD)
public override void DrawText(string text, Font font, Brush brush, PointD origin)Parameters
- textstring
- String to draw. 
- fontFont
- Font that defines the text format of the string. 
- brushBrush
- Brush that determines the color and texture of the drawn text. 
- originPointD
- PointD structure that specifies the upper-left corner of the text position on the canvas. 
DrawText(string, PointD, Font, Color, Color)
Draws text with the specified font, background and foreground colors. This is the fastest method to draw text.
public override void DrawText(string text, PointD location, Font font, Color foreColor, Color backColor)Parameters
- textstring
- Text to draw. 
- locationPointD
- Location used to draw the text. 
- fontFont
- Font used to draw the text. 
- foreColorColor
- Foreground color of the text. 
- backColorColor
- Background color of the text. If parameter is equal to Empty, background will not be painted. 
DrawText(string, Font, Brush, RectD)
public override void DrawText(string text, Font font, Brush brush, RectD bounds)