GetDistanceFromCharacterHit Method
Retrieves the offset from the leading edge of the GlyphRun to the leading or trailing edge of a caret stop containing the specified character hit.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public double GetDistanceFromCharacterHit(
CharacterHit characterHit
)
Public Function GetDistanceFromCharacterHit (
characterHit As CharacterHit
) As Double
member GetDistanceFromCharacterHit :
characterHit : CharacterHit -> float
Parameters
- CharacterHit
- The CharacterHit to use for computing the offset.
Return Value
Double
A Double that represents the offset from the leading edge of the GlyphRun to the leading or trailing edge of a caret stop containing the character hit.