DrawableTextRun Class

Summary

A text run that supports drawing content.
Namespace
Avalonia.Media.TextFormatting
Base Types
Derived Types
graph BT Type-->Base0["TextRun"] click Base0 "/api/Avalonia.Media.TextFormatting/TextRun" Base0-->Base1["object"] Type["DrawableTextRun"] class Type type-node Derived0["ShapedTextCharacters"]-->Type click Derived0 "/api/Avalonia.Media.TextFormatting/ShapedTextCharacters"

Syntax

public abstract class DrawableTextRun : TextRun

Fields

Name Constant Value Summary
DefaultTextSourceLength
Inherited from TextRun
static

Properties

Name Value Summary
Properties TextRunProperties
A set of properties shared by every characters in the run
Inherited from TextRun
Size Size
Gets the size.
Text ReadOnlySlice<char>
Gets the text run's text.
Inherited from TextRun
TextSourceLength int
Gets the text source length.
Inherited from TextRun

Methods

Name Value Summary
Draw(DrawingContext) void
Draws the DrawableTextRun at the given origin.