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