| Visual Basic (Declaration) | |
|---|---|
Overloads Sub DrawString( _ ByVal graphics As Graphics, _ ByVal text As String, _ ByVal font As Font, _ ByVal textBrush As Brush, _ ByVal bounds As Rectangle, _ ByVal stringFormat As StringFormat _ ) | |
| C# | |
|---|---|
void DrawString( Graphics graphics, string text, Font font, Brush textBrush, Rectangle bounds, StringFormat stringFormat ) | |
Parameters
- graphics
- The graphics that should be used to paint.
- text
- String to draw.
- font
- Font that defines the text format of the string.
- textBrush
- Brush that determines the color and texture of the drawn text.
- bounds
- RectangleF structure that specifies the location of the drawn text.
- stringFormat
- StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text.