Skip to main content

CharacterHit Constructor

Initializes a new instance of the CharacterHit structure.

Definition

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

public CharacterHit(
int firstCharacterIndex,
int trailingLength = 0
)

Parameters

  Int32
Index of the first character that got hit.
  Int32  (Optional)
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.

See Also

Reference

CharacterHit Structure
Avalonia.Media Namespace