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
Rectangle
Text run bounding rectangle
public Rect Rectangle { get; }
Property Value
TextRun
text run
public TextRun TextRun { get; }
Property Value
TextSourceCharacterIndex
First text source character index of text run
public int TextSourceCharacterIndex { get; }
Property Value
Methods
Equals(TextRunBounds)
public bool Equals(TextRunBounds other)
Parameters
other
TextRunBounds
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TextRunBounds, TextRunBounds)
public static bool operator ==(TextRunBounds left, TextRunBounds right)
Parameters
left
TextRunBoundsright
TextRunBounds
Returns
operator !=(TextRunBounds, TextRunBounds)
public static bool operator !=(TextRunBounds left, TextRunBounds right)
Parameters
left
TextRunBoundsright
TextRunBounds