Table of Contents

Struct TextHit

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

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

int

GraphemeInsertionIndex

Gets the grapheme insertion index represented by this hit.

public int GraphemeInsertionIndex { get; }

Property Value

int

IsTrailing

Gets a value indicating whether the hit is on the trailing side of the grapheme.

public bool IsTrailing { get; }

Property Value

bool

LineIndex

Gets the zero-based line index.

public int LineIndex { get; }

Property Value

int

StringIndex

Gets the zero-based UTF-16 code unit index in the original text.

public int StringIndex { get; }

Property Value

int