Skip to main content

GetCharacterHitFromDistance Method

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

Definition​

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

public abstract CharacterHit GetCharacterHitFromDistance(
double distance
)
View Source

Parameters​

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

Return Value​

CharacterHit
The CharacterHit object at the specified distance from the beginning of the line.

See Also​

Reference​

TextLine Class
Avalonia.Media.TextFormatting Namespace