DrawableTextRun Class
Definition
A text run that supports drawing content.
public class DrawableTextRun
Methods
| Name | Description |
|---|---|
| Draw | Draws the Avalonia.Media.TextFormatting.DrawableTextRun at the given origin. |
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.
Properties
| Name | Description |
|---|---|
| Baseline | Run baseline in ratio relative to run height |
| Size | Gets the size. |
| Length | Gets the text source length. Inherited from TextRun. |
| Properties | A set of properties shared by every characters in the run Inherited from TextRun. |
| Text | Gets the text run's text. Inherited from TextRun. |
Baseline Property
Run baseline in ratio relative to run height
public double Baseline { get; set; }
Size Property
Gets the size.
public Avalonia.Size Size { get; set; }
Fields
| Name | Description |
|---|---|
| DefaultTextSourceLength | Inherited from TextRun. |