CharacterHit.

CharacterHit(int, int) Constructor

Summary

Initializes a new instance of the CharacterHit structure.
Namespace
Avalonia.Media
Containing Type
CharacterHit

Syntax

public CharacterHit(int firstCharacterIndex, int trailingLength = 0)

Parameters

Name Type Description
firstCharacterIndex int Index of the first character that got hit.
trailingLength int In the case of a leading edge, this value is 0. In the case of a trailing edge, this value is the number of code points until the next valid caret position.

Return Value

Type Description
void