TextHitTestResult Class

Summary

Holds a hit test result from a FormattedText.
Namespace
Avalonia.Media
Base Types
  • object
graph BT Type-->Base0["object"] Type["TextHitTestResult"] class Type type-node

Syntax

public class TextHitTestResult

Properties

Name Value Summary
IsInside bool
Gets or sets a value indicating whether the point is inside the bounds of the text.
IsTrailing bool
Gets a value indicating whether the hit is on the trailing edge of the character.
TextPosition int
Gets the index of the hit character in the text.