[]
Measures string content based on currently selected font, device capabilities, string format.
TextMetrics MeasureString(FontInfo font, string contentText, StringFormatEx stringFormat, float boundWidth = 3.4028235E+38, float boundHeight = 3.4028235E+38)
| Type | Name | Description |
|---|---|---|
| FontInfo | font | |
| string | contentText | |
| StringFormatEx | stringFormat | |
| float | boundWidth | |
| float | boundHeight |
| Type | Description |
|---|---|
| TextMetrics | 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. |