CharacterHit CharacterHit CharacterHit CharacterHit Struct

定義

表示圖像系列內之字元點擊的詳細資訊。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)
繼承
CharacterHitCharacterHitCharacterHitCharacterHit
實作

備註

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

初始化 CharacterHit 結構的新執行個體。Initializes a new instance of the CharacterHit structure.

屬性

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.

方法

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

判斷指定的物件是否等於目前的 CharacterBufferReference 物件。Determines whether the specified object is equal to the current CharacterBufferReference object.

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

判斷 CharacterBufferReference 是否等於目前的 CharacterBufferReference 物件。Determines whether the CharacterBufferReference is equal to the current CharacterBufferReference object.

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

比較兩個 CharacterBufferReference 字串是否相等。Compare two CharacterBufferReference strings for equality.

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

比較兩個 CharacterBufferReference 字串是否不相等。Compare two CharacterBufferReference strings for inequality.

適用於

另請參閱