Table of Contents

Method MeasureTextSize

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

MeasureTextSize(string, FontFamily, FontStyle, FontWeight, FontStretch, double)

Measures 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 text.

fontStyle FontStyle

FontStyle used to measure text.

fontWeight FontWeight

FontWeight used to measure text.

fontStretch FontStretch

FontStretch used to measure text.

fontSize double

Font size used to measure text.

Returns

Size

Size of measured text.