Table of Contents

Struct TextRunBounds

Namespace
Avalonia.Media.TextFormatting
Assembly
Avalonia.Base.dll

The bounding rectangle of text run

public readonly struct TextRunBounds : IEquatable<TextRunBounds>
Implements
Inherited Members

Properties

Length

character length of bounded text run

public int Length { get; }

Property Value

int

Rectangle

Text run bounding rectangle

public Rect Rectangle { get; }

Property Value

Rect

TextRun

text run

public TextRun TextRun { get; }

Property Value

TextRun

TextSourceCharacterIndex

First text source character index of text run

public int TextSourceCharacterIndex { get; }

Property Value

int

Methods

Equals(TextRunBounds)

public bool Equals(TextRunBounds other)

Parameters

other TextRunBounds

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TextRunBounds, TextRunBounds)

public static bool operator ==(TextRunBounds left, TextRunBounds right)

Parameters

left TextRunBounds
right TextRunBounds

Returns

bool

operator !=(TextRunBounds, TextRunBounds)

public static bool operator !=(TextRunBounds left, TextRunBounds right)

Parameters

left TextRunBounds
right TextRunBounds

Returns

bool