Returns the width the text would be if output with specified font.
'Declaration
Public Overloads Function TextWidth( _
ByVal As Font, _
ByVal As String _
) As Single
'Usage
Dim instance As Draw
Dim font As Font
Dim text As String
Dim value As Single
value = instance.TextWidth(font, text)
Parameters
- font
- A System.Drawing.Font to use with the given text.
- text
- A string which represents the text to get the printed height of.
Return Value
A float value which represents the width of the text when printed.