Skip to main content

CharacterHit Structure

Represents information about a character hit within a glyph run.

Definition​

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

public readonly struct CharacterHit : IEquatable<CharacterHit>
View Source
InheritanceObject → ValueType → CharacterHit
ImplementsIEquatable(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.

Constructors​

CharacterHit(Int32, Int32)Initializes a new instance of the CharacterHit structure.

Properties​

FirstCharacterIndexGets the index of the first character that got hit.
TrailingLengthGets the trailing length value for the character that got hit.

Methods​

Equals(CharacterHit) 
Equals(Object)
(Overrides ValueType.Equals(Object))
GetHashCode()
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns the fully qualified type name of this instance.
(Inherited from ValueType)

Operators​

Equality(CharacterHit, CharacterHit) 
Inequality(CharacterHit, CharacterHit) 

See Also​

Reference​

Avalonia.Media Namespace