ShapedTextRun Class
Definition
A text run that holds shaped characters.
public class ShapedTextRun
Constructors
| Name | Description |
|---|---|
| ShapedTextRun | No summary available. |
ShapedTextRun Constructor
public ShapedTextRun(Avalonia.Media.TextFormatting.ShapedBuffer shapedBuffer, Avalonia.Media.TextFormatting.TextRunProperties properties)
Parameters
shapedBuffer Avalonia.Media.TextFormatting.ShapedBuffer
Methods
| Name | Description |
|---|---|
| Dispose | No summary available. |
| Draw | Draws the Avalonia.Media.TextFormatting.DrawableTextRun at the given origin. |
| TryMeasureCharacters | No summary available. |
Dispose Method
public void Dispose()
Draw Method
Draws the Avalonia.Media.TextFormatting.DrawableTextRun at the given origin.
public void Draw(Avalonia.Media.DrawingContext drawingContext, Avalonia.Point origin)
Parameters
drawingContext Avalonia.Media.DrawingContext
The drawing context.
origin Avalonia.Point
The origin.
TryMeasureCharacters Method
public bool TryMeasureCharacters(double availableWidth, int& length)
Parameters
availableWidth double
length int&
Returns
bool
Properties
| Name | Description |
|---|---|
| Baseline | No summary available. |
| BidiLevel | No summary available. |
| GlyphRun | No summary available. |
| IsReversed | No summary available. |
| Length | Gets the text source length. |
| Properties | A set of properties shared by every characters in the run |
| ShapedBuffer | No summary available. |
| Size | No summary available. |
| Text | Gets the text run's text. |
| TextMetrics | No summary available. |
Baseline Property
public double Baseline { get; set; }
BidiLevel Property
public sbyte BidiLevel { get; set; }
GlyphRun Property
public Avalonia.Media.GlyphRun GlyphRun { get; set; }
IsReversed Property
public bool IsReversed { get; set; }
Length Property
Gets the text source length.
public int Length { get; set; }
Properties Property
A set of properties shared by every characters in the run
public Avalonia.Media.TextFormatting.TextRunProperties Properties { get; set; }
ShapedBuffer Property
public Avalonia.Media.TextFormatting.ShapedBuffer ShapedBuffer { get; set; }
Size Property
public Avalonia.Size Size { get; set; }
Text Property
Gets the text run's text.
public ReadOnlyMemory<char> Text { get; set; }
TextMetrics Property
public Avalonia.Media.TextFormatting.TextMetrics TextMetrics { get; set; }
Fields
| Name | Description |
|---|---|
| DefaultTextSourceLength | Inherited from TextRun. |