GlyphRun.

GetCharacterHitFromDistance(double, bool) Method

Summary

Retrieves the CharacterHit value that represents the character hit of the caret of the GlyphRun.
Namespace
Avalonia.Media
Containing Type
GlyphRun

Syntax

public CharacterHit GetCharacterHitFromDistance(double distance, out bool isInside)

Parameters

Name Type Description
distance double Offset to use for computing the caret character hit.
isInside bool Determines whether the character hit is inside the GlyphRun.

Return Value

Type Description
CharacterHit A CharacterHit value that represents the character hit that is closest to the distance value. The out parameter isInside returns true if the character hit is inside the GlyphRun; otherwise, false.