[]
Measures string content based on currently selected font, device capabilities and IStyle.
public static TextMetrics MeasureString(this ITextMetricsProvider tm, FontInfo font, string contentText, IStyle style, float boundWidth, float boundHeight, CultureInfo reportCulture = null)
Type | Name | Description |
---|---|---|
ITextMetricsProvider | tm | |
FontInfo | font | |
string | contentText | |
IStyle | style | |
float | boundWidth | |
float | boundHeight | |
CultureInfo | reportCulture |
Type | Description |
---|---|
TextMetrics | Number of characters fit into provided bounds |
Measures string content based on currently selected font, device capabilities, string format and IStyle.
public static TextMetrics MeasureString(this ITextMetricsProvider tm, FontInfo font, string contentText, IStyle style, StringFormatEx stringFormat, float boundWidth = 3.4028235E+38, float boundHeight = 3.4028235E+38, CultureInfo reportCulture = null)
Type | Name | Description |
---|---|---|
ITextMetricsProvider | tm | |
FontInfo | font | |
string | contentText | |
IStyle | style | |
StringFormatEx | stringFormat | |
float | boundWidth | |
float | boundHeight | |
CultureInfo | reportCulture |
Type | Description |
---|---|
TextMetrics | Number of characters fit into provided bounds |