Draws the specified text string in the specified rectangle with the specified System.Drawing.Brush and System.Drawing.Font objects.
- s
- String to draw.
- font
- System.Drawing.Font that defines the text format of the string.
- brush
- System.Drawing.Brush that determines the color and texture of the drawn text.
- layoutRectangle
- System.Drawing.RectangleF structure that specifies the location of the drawn text.
The text represented by the s parameter is drawn inside the rectangle represented by the layoutRectangle parameter. If the text does not fit inside the rectangle, it is truncated at the nearest word. To further manipulate how the string is drawn inside the rectangle use the Graphics.DrawString(string, Font, Brush, RectangleF, StringFormat) overload that takes a System.Drawing.StringFormat.