Draws the specified text string at the specified point with the specified System.Drawing.Brush and System.Drawing.Font objects using the formatting attributes of the specified System.Drawing.StringFormat object and specified width coefficient of text characters.
Syntax
'Declaration
Public Overloads Function DrawString( _
ByVal As System.String, _
ByVal As System.Drawing.Font, _
ByVal As System.Drawing.Color, _
ByVal As System.Drawing.PointF, _
ByVal As System.Drawing.StringFormat, _
ByVal As System.Single _
) As System.Integer
public System.int DrawString(
System.string ,
System.Drawing.Font ,
System.Drawing.Color ,
System.Drawing.PointF ,
System.Drawing.StringFormat ,
System.float
)
Parameters
- text
- String to draw.
- font
- System.Drawing.Font object that defines the appearance and size of the drawn text.
- color
- The object that defines the color of the drawn text.
- pt
- The point structure that specifies the location of the drawn text, in points
- 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.
See Also