GlyphRun.

GetPreviousCaretCharacterHit(CharacterHit) Method

Summary

Retrieves the previous valid caret character hit in the logical direction in the GlyphRun.
Namespace
Avalonia.Media
Containing Type
GlyphRun

Syntax

public CharacterHit GetPreviousCaretCharacterHit(CharacterHit characterHit)

Parameters

Name Type Description
characterHit CharacterHit The CharacterHit to use for computing the previous hit value.

Return Value

Type Description
CharacterHit A cref="CharacterHit"/> that represents the previous valid caret character hit in the logical direction. If the return value is equal to characterHit, no further navigation is possible in the GlyphRun.