ShapedTextRun Class
A text run that holds shaped characters.
Definition
Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public sealed class ShapedTextRun : DrawableTextRun,
IDisposable
Public NotInheritable Class ShapedTextRun
Inherits DrawableTextRun
Implements IDisposable
[<SealedAttribute>]
type ShapedTextRun =
class
inherit DrawableTextRun
interface IDisposable
end
Inheritance | Object → TextRun → DrawableTextRun → ShapedTextRun |
Implements | IDisposable |
Constructors
ShapedTextRun(ShapedBuffer, TextRunProperties) | Initializes a new instance of the ShapedTextRun class |
Properties
Baseline | (Overrides DrawableTextRun.Baseline) |
BidiLevel | |
GlyphRun | |
IsReversed | |
Length | Gets the text source length. (Overrides TextRun.Length) |
Properties | A set of properties shared by every characters in the run (Overrides TextRun.Properties) |
ShapedBuffer | |
Size | (Overrides DrawableTextRun.Size) |
Text | Gets 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. |