Table of Contents

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

double

Size

Gets the size.

public abstract Size Size { get; }

Property Value

Size

Methods

Draw(DrawingContext, Point)

Draws the DrawableTextRun at the given origin.

public abstract void Draw(DrawingContext drawingContext, Point origin)

Parameters

drawingContext DrawingContext

The drawing context.

origin Point

The origin.