Class TextCollapsingProperties
- Namespace
- Avalonia.Media.TextFormatting
- Assembly
- Avalonia.Base.dll
Properties of text collapsing.
public abstract class TextCollapsingProperties
- Inheritance
-
TextCollapsingProperties
- Derived
- Inherited Members
Constructors
TextCollapsingProperties()
protected TextCollapsingProperties()
Properties
FlowDirection
Gets the flow direction that is used for collapsing.
public abstract FlowDirection FlowDirection { get; }
Property Value
Symbol
Gets the text run that is used as collapsing symbol.
public abstract TextRun Symbol { get; }
Property Value
Width
Gets the width in which the collapsible range is constrained to.
public abstract double Width { get; }
Property Value
Methods
Collapse(TextLine)
Collapses given text line.
public abstract TextRun[]? Collapse(TextLine textLine)
Parameters
textLine
TextLineText line to collapse.
Returns
- TextRun[]
CreateCollapsedRuns(TextLine, int, FlowDirection, TextRun)
Creates a list of runs for given collapsed length which includes specified symbol at the end.
public static TextRun[] CreateCollapsedRuns(TextLine textLine, int collapsedLength, FlowDirection flowDirection, TextRun shapedSymbol)
Parameters
textLine
TextLineThe text line.
collapsedLength
intThe collapsed length.
flowDirection
FlowDirectionThe flow direction.
shapedSymbol
TextRunThe symbol.
Returns
- TextRun[]
List of remaining runs.