Skip to main content

TextRunBounds Struct

Definition

Assembly:Avalonia.Base
Package:Avalonia

The bounding rectangle of text run

public struct TextRunBounds

Inheritance: ValueType -> TextRunBounds

Implements: IEquatable<TextRunBounds>

Methods

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

Equals overloads

Equals Method

public bool Equals(Avalonia.Media.TextFormatting.TextRunBounds other)
Parameters

other Avalonia.Media.TextFormatting.TextRunBounds

Returns

bool

Equals Method

public bool Equals(object obj)
Parameters

obj object

Returns

bool

GetHashCode Method

public int GetHashCode()

Returns

int

ToString Method

public string ToString()

Returns

string

Properties

NameDescription
Lengthcharacter length of bounded text run
RectangleText run bounding rectangle
TextRuntext run
TextSourceCharacterIndexFirst text source character index of text run

Length Property

character length of bounded text run

public int Length { get; set; }

Rectangle Property

Text run bounding rectangle

public Avalonia.Rect Rectangle { get; set; }

TextRun Property

text run

public Avalonia.Media.TextFormatting.TextRun TextRun { get; set; }

TextSourceCharacterIndex Property

First text source character index of text run

public int TextSourceCharacterIndex { get; set; }