Class DrawableTextRun
- Namespace
- Avalonia.Media.TextFormatting
- Assembly
- Avalonia.Base.dll
A text run that supports drawing content.
public abstract class DrawableTextRun : TextRun
- Inheritance
-
DrawableTextRun
- Derived
- Inherited Members
Constructors
DrawableTextRun()
protected DrawableTextRun()
Properties
Baseline
Run baseline in ratio relative to run height
public abstract double Baseline { get; }
Property Value
Size
Gets the size.
public abstract Size Size { get; }
Property Value
Methods
Draw(DrawingContext, Point)
Draws the DrawableTextRun at the given origin.
public abstract void Draw(DrawingContext drawingContext, Point origin)
Parameters
drawingContext
DrawingContextThe drawing context.
origin
PointThe origin.