Returns the height the text would be if the output has a specified font.
'Declaration
Public Overloads Function TextHeight( _
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.TextHeight(font, text)
Parameters
- font
- A System.Drawing.Font to use.
- text
- A string which represents the text to get the printed height of.
Return Value
A float value which represents the height of the text when printed.