Table of Contents

Method MeasureTextSize

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v10.dll

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

text string

String to measure.

fontFamily FontFamily

FontFamily used to measure the text.

fontStyle FontStyle

FontStyle used to measure the text.

fontWeight FontWeight

FontWeight used to measure the text.

fontStretch FontStretch

FontStretch used to measure vtext.

fontSize double

Font size used to measure the text.

Returns

Size

Size of measured text.