ShapedBuffer Class
Definition
public class ShapedBuffer
Constructors
| Name | Description |
|---|---|
| ShapedBuffer | No summary available. |
ShapedBuffer Constructor
public ShapedBuffer(ReadOnlyMemory<char> text, int bufferLength, Avalonia.Media.GlyphTypeface glyphTypeface, double fontRenderingEmSize, sbyte bidiLevel)
Parameters
text ReadOnlyMemory<char>
bufferLength int
glyphTypeface Avalonia.Media.GlyphTypeface
fontRenderingEmSize double
bidiLevel sbyte
Methods
| Name | Description |
|---|---|
| Dispose | No summary available. |
| GetEnumerator | No summary available. |
| Reverse | Reverses the buffer. |
| Split | Splits the Avalonia.Media.TextFormatting.TextRun at specified length. |
Dispose Method
public void Dispose()
GetEnumerator Method
public System.Collections.Generic.IEnumerator<Avalonia.Media.TextFormatting.GlyphInfo> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<Avalonia.Media.TextFormatting.GlyphInfo>
Reverse Method
Reverses the buffer.
public void Reverse()
Split Method
Splits the Avalonia.Media.TextFormatting.TextRun at specified length.
public Avalonia.Media.TextFormatting.SplitResult<T><Avalonia.Media.TextFormatting.ShapedBuffer> Split(int textLength)
Parameters
textLength int
The text length.
Returns
Avalonia.Media.TextFormatting.SplitResult<T><Avalonia.Media.TextFormatting.ShapedBuffer>
The split result.
Properties
| Name | Description |
|---|---|
| BidiLevel | The buffer's bidi level. |
| FontRenderingEmSize | The buffers font rendering em size. |
| GlyphTypeface | The buffer's glyph typeface. |
| IsLeftToRight | The buffer's reading direction. |
| Item | No summary available. |
| Length | The buffer's length. |
| Text | The text that is represended by this buffer. |
BidiLevel Property
The buffer's bidi level.
public sbyte BidiLevel { get; set; }
FontRenderingEmSize Property
The buffers font rendering em size.
public double FontRenderingEmSize { get; set; }
GlyphTypeface Property
The buffer's glyph typeface.
public Avalonia.Media.GlyphTypeface GlyphTypeface { get; set; }
IsLeftToRight Property
The buffer's reading direction.
public bool IsLeftToRight { get; set; }
Item Property
public Avalonia.Media.TextFormatting.GlyphInfo Item { get; set; }
Length Property
The buffer's length.
public int Length { get; set; }
Text Property
The text that is represended by this buffer.
public ReadOnlyMemory<char> Text { get; set; }