Skip to main content

GetDistanceFromCharacterHit Method

Gets the distance from the beginning of the line to the specified character hit. CharacterHit.

Definition

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public abstract double GetDistanceFromCharacterHit(
CharacterHit characterHit
)
View Source

Parameters

  CharacterHit
The CharacterHit object whose distance you want to query.

Return Value

Double
A Double that represents the distance from the beginning of the line.

See Also

Reference

TextLine Class
Avalonia.Media.TextFormatting Namespace