Table of Contents

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 int
glyphTypeface IGlyphTypeface
fontRenderingEmSize double
bidiLevel sbyte

Properties

BidiLevel

The buffer's bidi level.

public sbyte BidiLevel { get; }

Property Value

sbyte

FontRenderingEmSize

The buffers font rendering em size.

public double FontRenderingEmSize { get; }

Property Value

double

GlyphTypeface

The buffer's glyph typeface.

public IGlyphTypeface GlyphTypeface { get; }

Property Value

IGlyphTypeface

IsLeftToRight

The buffer's reading direction.

public bool IsLeftToRight { get; }

Property Value

bool

this[int]

public GlyphInfo this[int index] { get; set; }

Parameters

index int

Property Value

GlyphInfo

Length

The buffer's length.

public int Length { get; }

Property Value

int

Text

The text that is represended by this buffer.

public ReadOnlyMemory<char> Text { get; }

Property Value

ReadOnlyMemory<char>

Methods

Dispose()

public void Dispose()

GetEnumerator()

public IEnumerator<GlyphInfo> GetEnumerator()

Returns

IEnumerator<GlyphInfo>

Reverse()

Reverses the buffer.

public void Reverse()