GlyphRunGetCharacterHitFromDistance 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) Version: 11.3.999
public CharacterHit GetCharacterHitFromDistance(
	double distance,
	out bool isInside
)

Parameters

distance  Double
Offset to use for computing the caret character hit.
isInside  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