'Declaration
Public Overloads Shared Function MeasureString( _
ByVal As System.String, _
ByVal As System.Drawing.Font _
) As System.Drawing.SizeF
public static System.Drawing.SizeF MeasureString(
System.string ,
System.Drawing.Font
)
Parameters
- text
- String to measure.
- font
- System.Drawing.Font object that defines the text format of the string.
Return Value
A System.Drawing.SizeF structure that contains the width and height of the string (in points) when rendered with a given font.