GlyphRun.

GetDistanceFromCharacterHit(CharacterHit) Method

Summary

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.Media
Containing Type
GlyphRun

Syntax

public double GetDistanceFromCharacterHit(CharacterHit characterHit)

Parameters

Name Type Description
characterHit CharacterHit The CharacterHit to use for computing the offset.

Return Value

Type Description
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.