Class
TextProperties

Immutable settings describing text content, nominal size, substring position, and inferred flow direction.

Definition

Namespace:Telerik.Windows.Documents.Core.TextMeasurer

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public class TextProperties

Inheritance: objectTextProperties

Constructors

TextProperties(string, double, SubStringPosition)

Initialize text characteristics; detects RTL and inserts zero-width markers when needed for accurate measurement.

Declaration

cs-api-definition
public TextProperties(string text, double size = 100, SubStringPosition subStringPosition = SubStringPosition.None)

Parameters

text

string

The text.

size

double

The size.

subStringPosition

SubStringPosition

The sub string position.

Properties

FlowDirection

Gets the inferred flow direction based on content (LTR or RTL).

Declaration

cs-api-definition
public FlowDirection FlowDirection { get; }

Property Value

FlowDirection

The flow direction.

Size

Gets the nominal font size used when measuring the text.

Declaration

cs-api-definition
public double Size { get; }

Property Value

double

The size.

SubStringPosition

Gets the logical position hint used for RTL measurement adjustments.

Declaration

cs-api-definition
public SubStringPosition SubStringPosition { get; }

Property Value

SubStringPosition

The sub string position.

Text

Gets the processed text value used for measurement.

Declaration

cs-api-definition
public string Text { get; }

Property Value

string

The text.