TextLine.

GetDistanceFromCharacterHit(CharacterHit) Method

Summary

Gets the distance from the beginning of the line to the specified character hit. CharacterHit.
Namespace
Avalonia.Media.TextFormatting
Containing Type
TextLine

Syntax

public abstract double GetDistanceFromCharacterHit(CharacterHit characterHit)

Parameters

Name Type Description
characterHit CharacterHit The CharacterHit object whose distance you want to query.

Return Value

Type Description
double A double that represents the distance from the beginning of the line.