共用方式為


CharacterHit.Equality(CharacterHit, CharacterHit) 運算子

定義

比較兩個 CharacterBufferReference 字串是否相等。

public:
 static bool operator ==(System::Windows::Media::TextFormatting::CharacterHit left, System::Windows::Media::TextFormatting::CharacterHit right);
public static bool operator == (System.Windows.Media.TextFormatting.CharacterHit left, System.Windows.Media.TextFormatting.CharacterHit right);
static member ( = ) : System.Windows.Media.TextFormatting.CharacterHit * System.Windows.Media.TextFormatting.CharacterHit -> bool
Public Shared Operator == (left As CharacterHit, right As CharacterHit) As Boolean

參數

left
CharacterHit

要比較的第一個 CharacterBufferReference 執行個體。

right
CharacterHit

要比較的第二個 CharacterBufferReference 執行個體。

傳回

當兩個物件之 FirstCharacterIndexTrailingLength 屬性的值相等時,則為 true,否則為 false

適用於