Class ShapedBuffer
- Namespace
- Avalonia.Media.TextFormatting
- Assembly
- Avalonia.Base.dll
public sealed class ShapedBuffer : IReadOnlyList<GlyphInfo>, IReadOnlyCollection<GlyphInfo>, IEnumerable<GlyphInfo>, IEnumerable, IDisposable
- Inheritance
-
ShapedBuffer
- Implements
- Inherited Members
Constructors
ShapedBuffer(ReadOnlyMemory<char>, int, IGlyphTypeface, double, sbyte)
public ShapedBuffer(ReadOnlyMemory<char> text, int bufferLength, IGlyphTypeface glyphTypeface, double fontRenderingEmSize, sbyte bidiLevel)
Parameters
text
ReadOnlyMemory<char>bufferLength
intglyphTypeface
IGlyphTypefacefontRenderingEmSize
doublebidiLevel
sbyte
Properties
BidiLevel
The buffer's bidi level.
public sbyte BidiLevel { get; }
Property Value
FontRenderingEmSize
The buffers font rendering em size.
public double FontRenderingEmSize { get; }
Property Value
GlyphTypeface
The buffer's glyph typeface.
public IGlyphTypeface GlyphTypeface { get; }
Property Value
IsLeftToRight
The buffer's reading direction.
public bool IsLeftToRight { get; }
Property Value
this[int]
public GlyphInfo this[int index] { get; set; }
Parameters
index
int
Property Value
Length
The buffer's length.
public int Length { get; }
Property Value
Text
The text that is represended by this buffer.
public ReadOnlyMemory<char> Text { get; }
Property Value
Methods
Dispose()
public void Dispose()
GetEnumerator()
public IEnumerator<GlyphInfo> GetEnumerator()
Returns
Reverse()
Reverses the buffer.
public void Reverse()