CharacterHit Struct

Summary

Represents information about a character hit within a glyph run.
Namespace
Avalonia.Media
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["IEquatable<CharacterHit>"] Type["CharacterHit"] class Type type-node

Syntax

[DebuggerDisplay("CharacterHit({FirstCharacterIndex}, {TrailingLength})")]
public readonly struct CharacterHit : ValueType, IEquatable<CharacterHit>

Remarks

The CharacterHit structure provides information about the index of the first character that got hit as well as information about leading or trailing edge.

Attributes

Type Description
DebuggerDisplayAttribute

Constructors

Name Summary
CharacterHit(int, int) Initializes a new instance of the CharacterHit structure.

Properties

Name Value Summary
FirstCharacterIndex int
Gets the index of the first character that got hit.
TrailingLength int
Gets the trailing length value for the character that got hit.

Methods

Name Value Summary
Equals(CharacterHit) bool
Equals(object) bool
GetHashCode() int

Operators

Name Value Summary
operator !=(CharacterHit, CharacterHit) bool
operator ==(CharacterHit, CharacterHit) bool