ShapedTextCharacters Class

Summary

A text run that holds shaped characters.
graph BT Type-->Base0["DrawableTextRun"] click Base0 "/api/Avalonia.Media.TextFormatting/DrawableTextRun" Base0-->Base1["TextRun"] click Base1 "/api/Avalonia.Media.TextFormatting/TextRun" Base1-->Base2["object"] Type["ShapedTextCharacters"] class Type type-node

Syntax

public sealed class ShapedTextCharacters : DrawableTextRun

Constructors

Fields

Name Constant Value Summary
DefaultTextSourceLength
Inherited from TextRun
static

Properties

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

Methods

Name Value Summary
Draw(DrawingContext) void
Draws the DrawableTextRun at the given origin.
Split(int) ShapedTextCharacters.SplitTextCharactersResult
Splits the TextRun at specified length.