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.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public double GetDistanceFromCharacterHit(
	CharacterHit characterHit
)

Parameters

characterHit  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