CharacterHit CharacterHit CharacterHit CharacterHit Struct

Definition

Represents information about a character hit within a glyph run.

public value class CharacterHit : IEquatable<System::Windows::Media::TextFormatting::CharacterHit>
public struct CharacterHit : IEquatable<System.Windows.Media.TextFormatting.CharacterHit>
type CharacterHit = struct
Public Structure CharacterHit
Implements IEquatable(Of CharacterHit)
Inheritance
CharacterHitCharacterHitCharacterHitCharacterHit
Implements

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) CharacterHit(Int32, Int32) CharacterHit(Int32, Int32) CharacterHit(Int32, Int32)

Initializes a new instance of the CharacterHit structure.

Properties

FirstCharacterIndex FirstCharacterIndex FirstCharacterIndex FirstCharacterIndex

Gets the index of the first character that got hit.

TrailingLength TrailingLength TrailingLength TrailingLength

Gets the trailing length value for the character that got hit.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current CharacterBufferReference object.

Equals(CharacterHit) Equals(CharacterHit) Equals(CharacterHit) Equals(CharacterHit)

Determines whether the CharacterBufferReference is equal to the current CharacterBufferReference object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for CharacterBufferReference. It is suitable for use in hashing algorithms and data structures such as a hash table.

Operators

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

Compare two CharacterBufferReference strings for equality.

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

Compare two CharacterBufferReference strings for inequality.

Applies to

See also