Skip to main content

ShapedTextRun Class

A text run that holds shaped characters.

Definition

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public sealed class ShapedTextRun : DrawableTextRun, 
IDisposable
View Source
InheritanceObjectTextRunDrawableTextRun → ShapedTextRun
ImplementsIDisposable

Constructors

ShapedTextRun(ShapedBuffer, TextRunProperties)Initializes a new instance of the ShapedTextRun class

Properties

Baseline
(Overrides DrawableTextRun.Baseline)
BidiLevel 
GlyphRun 
IsReversed 
LengthGets the text source length.
(Overrides TextRun.Length)
PropertiesA set of properties shared by every characters in the run
(Overrides TextRun.Properties)
ShapedBuffer 
Size
(Overrides DrawableTextRun.Size)
TextGets the text run's text.
(Overrides TextRun.Text)
TextMetrics 

Methods

Dispose()Releases all resources used by the ShapedTextRun
Draw(DrawingContext, Point)Draws the DrawableTextRun at the given origin.
(Overrides DrawableTextRun.Draw(DrawingContext, Point))
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)
TryMeasureCharacters(Double, Int32)Measures the number of characters that fit into available width.

See Also

Reference

Avalonia.Media.TextFormatting Namespace