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 的第二个实例。

返回

Boolean

如果这两个对象的 FirstCharacterIndexTrailingLength 属性值均相等,则为 true;否则为 false.

适用于