Method MeasureTextSize
MeasureTextSize(string, FontFamily, FontStyle, FontWeight, FontStretch, double)
Measures the specified text according to the font settings.
public Size MeasureTextSize(string text, FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight, FontStretch fontStretch, double fontSize)
Parameters
textstringString to measure.
fontFamilyFontFamilyFontFamily used to measure the text.
fontStyleFontStyleFontStyle used to measure the text.
fontWeightFontWeightFontWeight used to measure the text.
fontStretchFontStretchFontStretch used to measure vtext.
fontSizedoubleFont size used to measure the text.
Returns
- Size
Size of measured text.