Class TextTrailingCharacterEllipsis
- Namespace
- Avalonia.Media.TextFormatting
- Assembly
- Avalonia.Base.dll
A collapsing properties to collapse whole line toward the end at character granularity.
public sealed class TextTrailingCharacterEllipsis : TextCollapsingProperties
- Inheritance
-
TextTrailingCharacterEllipsis
- Inherited Members
Constructors
TextTrailingCharacterEllipsis(string, double, TextRunProperties, FlowDirection)
Construct a text trailing character ellipsis collapsing properties
public TextTrailingCharacterEllipsis(string ellipsis, double width, TextRunProperties textRunProperties, FlowDirection flowDirection)
Parameters
ellipsis
stringText used as collapsing symbol.
width
doubleWidth in which collapsing is constrained to.
textRunProperties
TextRunPropertiesText run properties of ellipsis symbol.
flowDirection
FlowDirectionThe flow direction of the collapsed line.
Properties
FlowDirection
Gets the flow direction that is used for collapsing.
public override FlowDirection FlowDirection { get; }
Property Value
Symbol
Gets the text run that is used as collapsing symbol.
public override TextRun Symbol { get; }
Property Value
Width
Gets the width in which the collapsible range is constrained to.
public override double Width { get; }
Property Value
Methods
Collapse(TextLine)
Collapses given text line.
public override TextRun[]? Collapse(TextLine textLine)
Parameters
textLine
TextLineText line to collapse.
Returns
- TextRun[]