CharacterHit 结构

定义

表示有关标志符号运行中的字符命中的信息。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)
继承
CharacterHit
实现

注解

CharacterHit结构提供有关所命中的第一个字符的索引的信息,以及有关前导或尾随边缘的信息。The CharacterHit structure provides information about the index of the first character that got hit as well as information about leading or trailing edge.

构造函数

CharacterHit(Int32, Int32)

初始化 CharacterHit 结构的新实例。Initializes a new instance of the CharacterHit structure.

属性

FirstCharacterIndex

获取被命中的第一个字符的索引。Gets the index of the first character that got hit.

TrailingLength

获取被命中的字符的尾随长度值。Gets the trailing length value for the character that got hit.

方法

Equals(CharacterHit)

确定 CharacterBufferReference 是否等于当前的 CharacterBufferReference 对象。Determines whether the CharacterBufferReference is equal to the current CharacterBufferReference object.

Equals(Object)

确定指定的对象是否等于当前 CharacterBufferReference 对象。Determines whether the specified object is equal to the current CharacterBufferReference object.

GetHashCode()

用作 CharacterBufferReference 的哈希函数。Serves as a hash function for CharacterBufferReference. 它适用于哈希算法和数据结构(如哈希表)。It is suitable for use in hashing algorithms and data structures such as a hash table.

运算符

Equality(CharacterHit, CharacterHit)

比较两个 CharacterBufferReference 字符串是否相等。Compare two CharacterBufferReference strings for equality.

Inequality(CharacterHit, CharacterHit)

比较两个 CharacterBufferReference 字符串是否不相等。Compare two CharacterBufferReference strings for inequality.

适用于

另请参阅