CharacterHit.Equality(CharacterHit, CharacterHit) Operator

Definition

Überprüft zwei CharacterBufferReference-Zeichenfolgen auf Gleichheit.Compare two CharacterBufferReference strings for equality.

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

Parameter

left
CharacterHit

Die erste zu vergleichende Instanz von CharacterBufferReference.The first instance of CharacterBufferReference to compare.

right
CharacterHit

Die zweite zu vergleichende Instanz von CharacterBufferReference.The second instance of CharacterBufferReference to compare.

Gibt zurück

true, wenn die Werte der FirstCharacterIndex-Eigenschaft und der TrailingLength-Eigenschaft für beide Objekte gleich sind, andernfalls false.true when the values of FirstCharacterIndex and TrailingLength properties are equal for both objects; otherwise, false.

Gilt für: