Class TextCharacters
- Namespace
- Avalonia.Media.TextFormatting
- Assembly
- Avalonia.Base.dll
A text run that holds text characters.
public class TextCharacters : TextRun
- Inheritance
-
TextCharacters
- Inherited Members
Constructors
TextCharacters(ReadOnlyMemory<char>, TextRunProperties)
Constructs a run for text content from a memory region.
public TextCharacters(ReadOnlyMemory<char> text, TextRunProperties textRunProperties)
Parameters
text
ReadOnlyMemory<char>textRunProperties
TextRunProperties
TextCharacters(string, TextRunProperties)
Constructs a run for text content from a string.
public TextCharacters(string text, TextRunProperties textRunProperties)
Parameters
text
stringtextRunProperties
TextRunProperties
Properties
Length
Gets the text source length.
public override int Length { get; }
Property Value
Properties
A set of properties shared by every characters in the run
public override TextRunProperties Properties { get; }
Property Value
Text
Gets the text run's text.
public override ReadOnlyMemory<char> Text { get; }