'Declaration Function MeasureString( _ ByVal font As FontInfo, _ ByVal contentText As String, _ ByVal stringFormat As StringFormatEx, _ Optional ByVal boundWidth As Single, _ Optional ByVal boundHeight As Single _ ) As TextMetrics
TextMetrics MeasureString( FontInfo font, string contentText, StringFormatEx stringFormat, float boundWidth, float boundHeight )
Parameters
- font
- contentText
- stringFormat
- boundWidth
- boundHeight
Return Value
The TextMetrics structure that contains numbers of lines of text and total chars fitted in available bounds and minimal desired bounds to fit the text.