'Declaration Public Shared Function MeasureString( _ ByVal graphics As Graphics, _ ByVal text As String, _ ByVal font As Font, _ ByVal format As StringFormat _ ) As SizeF
'Usage Dim graphics As Graphics Dim text As String Dim font As Font Dim format As StringFormat Dim value As SizeF value = SmartPaint.MeasureString(graphics, text, font, format)
Parameters
- graphics
- The Graphics that will be used to draw the string.
- text
- The string to measure.
- font
- The font object that defines the text format of the string.
- format
- A StringFormat object that represents formatting information, such as line spacing, for the string.
Return Value
The size of the specified string according to the specified font and StringFormat.