Skip to main content

TextLeadingPrefixCharacterEllipsis Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

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

public class TextLeadingPrefixCharacterEllipsis

Inheritance: object -> TextCollapsingProperties -> TextLeadingPrefixCharacterEllipsis

Constructors

NameDescription
TextLeadingPrefixCharacterEllipsisConstruct a text trailing word ellipsis collapsing properties.

TextLeadingPrefixCharacterEllipsis Constructor

Construct a text trailing word ellipsis collapsing properties.

public TextLeadingPrefixCharacterEllipsis(string ellipsis, int prefixLength, double width, Avalonia.Media.TextFormatting.TextRunProperties textRunProperties, Avalonia.Media.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 Avalonia.Media.TextFormatting.TextRunProperties

text run properties of ellipsis symbol

flowDirection Avalonia.Media.FlowDirection

the flow direction of the collapes line.

Methods

NameDescription
CollapseCollapses given text line.
CreateCollapsedRunsCreates a list of runs for given collapsed length which includes specified symbol at the end. Inherited from TextCollapsingProperties.

Collapse Method

Collapses given text line.

public Avalonia.Media.TextFormatting.TextRun[] Collapse(Avalonia.Media.TextFormatting.TextLine textLine)

Parameters

textLine Avalonia.Media.TextFormatting.TextLine

Text line to collapse.

Returns

Avalonia.Media.TextFormatting.TextRun[]

Properties

NameDescription
FlowDirectionNo summary available.
SymbolGets the text run that is used as collapsing symbol.
WidthGets the width in which the collapsible range is constrained to.

FlowDirection Property

public Avalonia.Media.FlowDirection FlowDirection { get; set; }

Symbol Property

Gets the text run that is used as collapsing symbol.

public Avalonia.Media.TextFormatting.TextRun Symbol { get; set; }

Width Property

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

public double Width { get; set; }