Interface
ITextMeasurer

Contract for measuring text dimensions using specific font properties.

Definition

Namespace:Telerik.Windows.Documents.Core.TextMeasurer

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public interface ITextMeasurer

Methods

MeasureText(TextProperties, FontProperties)

Measure the text with the given font settings and return calculated metrics.

Declaration

cs-api-definition
TextMeasurementInfo MeasureText(TextProperties textProperties, FontProperties fontProperties)

Parameters

textProperties

TextProperties

The TextProperties class which defines the text, its size and the flow direction.

fontProperties

FontProperties

The FontProperties class which defines the font family, font style and font weight.

Returns

TextMeasurementInfo

The with the properties of the measured text.