TextLeadingPrefixCharacterEllipsis Class
Definition
Ellipsis based on a fixed length leading prefix and suffix growing from the end at character granularity.
public class TextLeadingPrefixCharacterEllipsis
Constructors
| Name | Description |
|---|---|
| TextLeadingPrefixCharacterEllipsis | Construct 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
| Name | Description |
|---|---|
| Collapse | Collapses given text line. |
| CreateCollapsedRuns | Creates 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
Properties
| Name | Description |
|---|---|
| FlowDirection | No summary available. |
| Symbol | Gets the text run that is used as collapsing symbol. |
| Width | Gets 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; }