MeasureString(String,Font,Single) Method
Measure string for this document.
'Declaration
Public Overloads Function MeasureString( _
ByVal As System.String, _
ByVal As System.Drawing.Font, _
ByVal As System.Single _
) As System.Drawing.SizeF
public System.Drawing.SizeF MeasureString(
System.string ,
System.Drawing.Font ,
System.float
)
Parameters
- text
- The drawing string.
- font
- The drawing font.
- width
- The drawing width or -1 for default.
Return Value
The size, in points, of the string specified as drawn with the font parameter.