TextHitTestResult Structure
Holds a hit test result from a TextLayout.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public readonly struct TextHitTestResult : IEquatable<TextHitTestResult>
Public Structure TextHitTestResult
Implements IEquatable(Of TextHitTestResult)
[<SealedAttribute>]
type TextHitTestResult =
struct
inherit ValueType
interface IEquatable<TextHitTestResult>
end
Inheritance | Object → ValueType → TextHitTestResult |
Implements | IEquatable(TextHitTestResult) |
Constructors
TextHitTestResult(CharacterHit, Int32, Boolean, Boolean) | Initializes a new instance of the TextHitTestResult class |
Properties
CharacterHit | Gets the character hit of the hit test result. |
IsInside | Gets a value indicating whether the point is inside the bounds of the text. |
IsTrailing | Gets a value indicating whether the hit is on the trailing edge of the character. |
TextPosition | Gets the index of the hit character in the text. |
Methods
GetType() | Gets the Type of the current instance. (Inherited from Object) |