GlyphRunGetDistanceFromCharacterHit 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.
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public double GetDistanceFromCharacterHit(
CharacterHit characterHit
)
Public Function GetDistanceFromCharacterHit (
characterHit As CharacterHit
) As Double
member GetDistanceFromCharacterHit :
characterHit : CharacterHit -> float
- characterHit CharacterHit
- The CharacterHit to use for computing the offset.
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.