Table of Contents

Class TextLeadingPrefixCharacterEllipsis

Namespace
Avalonia.Media.TextFormatting
Assembly
Avalonia.Base.dll

Ellipsis based on a fixed length leading prefix and suffix growing from the end at character granularity.

public sealed class TextLeadingPrefixCharacterEllipsis : TextCollapsingProperties
Inheritance
TextLeadingPrefixCharacterEllipsis
Inherited Members

Constructors

TextLeadingPrefixCharacterEllipsis(string, int, double, TextRunProperties, FlowDirection)

Construct a text trailing word ellipsis collapsing properties.

public TextLeadingPrefixCharacterEllipsis(string ellipsis, int prefixLength, double width, TextRunProperties textRunProperties, FlowDirection flowDirection)

Parameters

ellipsis string

Text used as collapsing symbol.

prefixLength int

Length of leading prefix.

width double

width in which collapsing is constrained to

textRunProperties TextRunProperties

text run properties of ellipsis symbol

flowDirection FlowDirection

the flow direction of the collapes line.

Properties

FlowDirection

Gets the flow direction that is used for collapsing.

public override FlowDirection FlowDirection { get; }

Property Value

FlowDirection

Symbol

Gets the text run that is used as collapsing symbol.

public override TextRun Symbol { get; }

Property Value

TextRun

Width

Gets the width in which the collapsible range is constrained to.

public override double Width { get; }

Property Value

double

Methods

Collapse(TextLine)

Collapses given text line.

public override TextRun[]? Collapse(TextLine textLine)

Parameters

textLine TextLine

Text line to collapse.

Returns

TextRun[]