Skip to main content

GetCharacterHitFromDistance Method

Retrieves the CharacterHit value that represents the character hit of the caret of the GlyphRun.

Definition

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

public CharacterHit GetCharacterHitFromDistance(
double distance,
out bool isInside
)

Parameters

  Double
Offset to use for computing the caret character hit.
  Boolean
Determines whether the character hit is inside the GlyphRun.

Return Value

CharacterHit
A CharacterHit value that represents the character hit that is closest to the distance value. The out parameter isInside returns true if the character hit is inside the GlyphRun; otherwise, false.

See Also

Reference

GlyphRun Class
Avalonia.Media Namespace