'Declaration Function MeasureString( _ ByVal text As System.String, _ ByVal fontName As System.String, _ ByVal fontSize As System.Double, _ ByVal wordWrap As System.Boolean, _ ByVal width As System.Double _ ) As GcSize
'Usage Dim instance As IMeasureString Dim text As System.String Dim fontName As System.String Dim fontSize As System.Double Dim wordWrap As System.Boolean Dim width As System.Double Dim value As GcSize value = instance.MeasureString(text, fontName, fontSize, wordWrap, width)
Parameters
- text
- The string to be measured.
- fontName
- Name of the font.
- fontSize
- Size of the font.
- wordWrap
- if set to true, word-wrap.
- width
- The width of the word-wrap rectangle.
Return Value
Returns the size of the string.