MeasureString(String,Font) Method
Measures the specified string when drawn with a given
Font object.
'Declaration
Public Overloads Function MeasureString( _
ByVal As String, _
ByVal As Font _
) As Size
public Size MeasureString(
string ,
Font
)
Parameters
- text
- String to measure.
- font
- Font object that defines the appearance and size of the text.
Return Value
The size of the string expressed in points.