'Declaration
Public Overloads Function DrawString( _ ByVal text As String, _ ByVal font As Font, _ ByVal brush As Brush, _ ByVal rc As RectangleF, _ ByVal firstChar As Integer, _ ByVal sf As StringFormat, _ ByVal widthCoeff As Single _ ) As Integer
public int DrawString( string text, Font font, Brush brush, RectangleF rc, int firstChar, StringFormat sf, float widthCoeff )
Parameters
- text
- The string to draw.
- font
- The System.Drawing.Font used to draw the text.
- brush
- The System.Drawing.Brush specifying the text color.
- rc
- The rectangle specifying the location of the text, in points from the top left corner of the page.
- firstChar
- The index of the first character that will be rendered.
- sf
- The System.Drawing.StringFormat object specifying the formatting attributes applied to the text.
- widthCoeff
- The width coefficient applied to characters. The default is 1.0, use 2.0 for double width and so on.
Return Value
The index of the first character that was not rendered because it did not fit in the specified rectangle.