GlyphRun.

FindNearestCharacterHit(int, double) Method

Summary

Finds the nearest CharacterHit at given index.
Namespace
Avalonia.Media
Containing Type
GlyphRun

Syntax

public CharacterHit FindNearestCharacterHit(int index, out double width)

Parameters

Name Type Description
index int The index.
width double The width of found cluster.

Return Value

Type Description
CharacterHit The nearest CharacterHit.