GetCharacterHitFromDistance Method
Retrieves the CharacterHit value that represents the character hit of the caret of the GlyphRun.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public CharacterHit GetCharacterHitFromDistance(
double distance,
out bool isInside
)
Public Function GetCharacterHitFromDistance (
distance As Double,
<OutAttribute> ByRef isInside As Boolean
) As CharacterHit
member GetCharacterHitFromDistance :
distance : float *
isInside : bool byref -> CharacterHit
Parameters
- Double
- Offset to use for computing the caret character hit.
- Boolean
- Determines whether the character hit is inside the GlyphRun.
Return Value
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
.