Table of Contents

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

FlowDirection

Symbol

Gets the text run that is used as collapsing symbol.

public abstract TextRun Symbol { get; }

Property Value

TextRun

Width

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

public abstract double Width { get; }

Property Value

double

Methods

Collapse(TextLine)

Collapses given text line.

public abstract TextRun[]? Collapse(TextLine textLine)

Parameters

textLine TextLine

Text 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 TextLine

The text line.

collapsedLength int

The collapsed length.

flowDirection FlowDirection

The flow direction.

shapedSymbol TextRun

The symbol.

Returns

TextRun[]

List of remaining runs.