ClassTextProperties
Class
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
The text.
size
The size.
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.
SubStringPosition
Gets the logical position hint used for RTL measurement adjustments.
Declaration
cs-api-definition
public SubStringPosition SubStringPosition { get; }
Property Value
The sub string position.