Class TextProperties
Immutable settings describing text content, nominal size, substring position, and inferred flow direction.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Core.TextMeasurer
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public class TextProperties
Constructors
TextProperties(String, Double, SubStringPosition)
Initialize text characteristics; detects RTL and inserts zero-width markers when needed for accurate measurement.
Declaration
public TextProperties(string text, double size = 100, SubStringPosition subStringPosition = SubStringPosition.None)
Parameters
|
System.String
text
The text. |
|
System.Double
size
The size. |
|
SubStringPosition
subStringPosition
The sub string position. |
Properties
FlowDirection
Gets the inferred flow direction based on content (LTR or RTL).
Declaration
public FlowDirection FlowDirection { get; }
Property Value
|
System.Windows.FlowDirection
The flow direction. |
Size
Gets the nominal font size used when measuring the text.
Declaration
public double Size { get; }
Property Value
|
System.Double
The size. |
SubStringPosition
Gets the logical position hint used for RTL measurement adjustments.
Declaration
public SubStringPosition SubStringPosition { get; }
Property Value
|
SubStringPosition
The sub string position. |
Text
Gets the processed text value used for measurement.
Declaration
public string Text { get; }
Property Value
|
System.String
The text. |