Struct TextHit
Represents a hit-tested grapheme position in laid-out text.
public readonly struct TextHit
- Inherited Members
Properties
GraphemeIndex
Gets the zero-based grapheme index in the original text.
public int GraphemeIndex { get; }
Property Value
GraphemeInsertionIndex
Gets the grapheme insertion index represented by this hit.
public int GraphemeInsertionIndex { get; }
Property Value
IsTrailing
Gets a value indicating whether the hit is on the trailing side of the grapheme.
public bool IsTrailing { get; }
Property Value
LineIndex
Gets the zero-based line index.
public int LineIndex { get; }
Property Value
StringIndex
Gets the zero-based UTF-16 code unit index in the original text.
public int StringIndex { get; }