InkRecognizerBase.Equals, méthode
Mise à jour : November 2007
Détermine si l'objet spécifié est égal au InkRecognizerBase.
Espace de noms : System.Windows.Ink.AnalysisCore
Assembly : IACore (dans IACore.dll)
Syntaxe
'Déclaration
Public Overrides Function Equals ( _
obj As Object _
) As Boolean
'Utilisation
Dim instance As InkRecognizerBase
Dim obj As Object
Dim returnValue As Boolean
returnValue = instance.Equals(obj)
public override bool Equals(
Object obj
)
public:
virtual bool Equals(
Object^ obj
) override
public boolean Equals(
Object obj
)
public override function Equals(
obj : Object
) : boolean
Paramètres
- obj
Type : System.Object
Valeur de retour
Type : System.Boolean
true si le InkRecognizerBase actif et l'objet otherRecognizer sont des instances du même InkRecognizerBase ; sinon, false.
Notes
L'objet otherRecognizer est considéré comme égal au InkRecognizerBase si otherRecognizer et le InkRecognizerBase sont des instances du même InkRecognizerBase.
Exemples
L'exemple suivant détermine si le module de reconnaissance par défaut et le module de reconnaissance du japonais d'un InkRecognizerBaseCollection sont égaux.
' Get the InkRecognitionCollection from the InkAnalyzer
Dim inkRecognizers As InkRecognizerBaseCollection = theInkAnalyzerBase.GetInkRecognizersByPriority()
' Only check fo equality if there are 2 ink recognizers
' associated with the InkAnalyzer.
If inkRecognizers.Count >= 2 Then
' Get the default InkRecognizer.
Dim defaultInkRecognizer As InkRecognizerBase = _
inkRecognizers(0)
' Get the Japanese InkRecognizer.
Dim japaneseInkRecognizer As InkRecognizerBase = _
inkRecognizers.GetPriorityInkRecognizer(&H11)
' Check the default recognizer.
If Not defaultInkRecognizer.Equals(japaneseInkRecognizer) Then
' The default InkRecognizer is not the Japanese InkRecognizer.
End If
End If
// Get the InkRecognitionCollection from the InkAnalyzer
InkRecognizerBaseCollection inkRecognizers = theInkAnalyzerBase.GetInkRecognizersByPriority();
// Only check fo equality if there are 2 ink recognizers
// associated with the InkAnalyzer.
if (inkRecognizers.Count >= 2)
{
// Get the default InkRecognizer.
InkRecognizerBase defaultInkRecognizer =
inkRecognizers[0];
// Get the Japanese InkRecognizer.
InkRecognizerBase japaneseInkRecognizer =
inkRecognizers.GetPriorityInkRecognizer(0x0011);
// Check the default recognizer.
if (!defaultInkRecognizer.Equals(japaneseInkRecognizer))
{
// The default InkRecognizer is not the Japanese InkRecognizer.
}
}
Plateformes
Windows Vista, Windows XP SP2, Windows Server 2003
Le .NET Framework et le .NET Compact Framework ne prennent pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
Informations de version
.NET Framework
Pris en charge dans : 3.0