DrawStringRtf(String,Font,Brush,RectangleF) Method
Draws an RTF string in the specified rectangle with the specified
System.Drawing.Brush and
System.Drawing.Font objects.
Parameters
- text
- RTF string to draw.
- font
- System.Drawing.Font object that defines the appearance and size of the drawn text.
- brush
- System.Drawing.Brush object that defines the color of the drawn text.
- rc
- System.Drawing.RectangleF structure that specifies the location of the drawn text, in points from the top left corner of the page.
Return Value
The index of first character that was not printed because it did not fit in the specified rectangle, or the value of int.MaxValue if the entire string was rendered.