InkRecognizer.Equals, méthode
Mise à jour : November 2007
Détermine si l'objet spécifié est égal au InkRecognizer.
Espace de noms : Microsoft.Ink
Assembly : Microsoft.Ink.Analysis (dans Microsoft.Ink.Analysis.dll)
Syntaxe
'Déclaration
Public Overrides Function Equals ( _
obj As Object _
) As Boolean
'Utilisation
Dim instance As InkRecognizer
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
Objet à comparer au InkRecognizer actif.
Valeur de retour
Type : System.Boolean
true si le InkRecognizer actif et l'objet otherRecognizer sont des instances du même InkRecognizer ; sinon, false.
Notes
L'objet otherRecognizer est considéré comme égal au InkRecognizer si le otherRecognizer et le InkRecognizer sont des instances du même InkRecognizer.
Exemples
L'exemple suivant obtient le module de reconnaissance par défaut et le module de reconnaissance japonais, puis les compare.
' Get the InkRecognitionCollection from the InkAnalyzer
Dim inkRecognizers As Microsoft.Ink.InkRecognizerCollection = _
theInkAnalyzer.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 Microsoft.Ink.InkRecognizer = _
inkRecognizers(0)
' Get the Japanese InkRecognizer.
Dim japaneseInkRecognizer As Microsoft.Ink.InkRecognizer = _
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
InkRecognizerCollection inkRecognizers = theInkAnalyzer.GetInkRecognizersByPriority();
// Only check fo equality if there are 2 ink recognizers
// associated with the InkAnalyzer.
if (inkRecognizers.Count >= 2)
{
// Get the default InkRecognizer.
Microsoft.Ink.InkRecognizer defaultInkRecognizer =
inkRecognizers[0];
// Get the Japanese InkRecognizer.
Microsoft.Ink.InkRecognizer japaneseInkRecognizer =
inkRecognizers.GetPriorityInkRecognizer(0x0011);
// Check the default recognizer.
if (!defaultInkRecognizer.Equals(japaneseInkRecognizer))
{
// The default InkRecognizer is not the Japanese InkRecognizer.
}
}
Plateformes
Windows Vista
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