Skip to main content

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)

public double GetDistanceFromCharacterHit(
CharacterHit characterHit
)

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.

See Also

Reference

GlyphRun Class
Avalonia.Media Namespace