CharacterHit Constructor
Initializes a new instance of the CharacterHit structure.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public CharacterHit(
int firstCharacterIndex,
int trailingLength = 0
)
Public Sub New (
firstCharacterIndex As Integer,
Optional trailingLength As Integer = 0
)
new :
firstCharacterIndex : int *
?trailingLength : int
(* Defaults:
let _trailingLength = defaultArg trailingLength 0
*)
-> CharacterHit
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.