Поделиться через


InkRecognizerBase.Equals - метод

Обновлен: Ноябрь 2007

Determines whether the specified object is equal to the InkRecognizerBase.

Пространство имен:  System.Windows.Ink.AnalysisCore
Сборка:  IACore (в IACore.dll)

Синтаксис

'Декларация
Public Overrides Function Equals ( _
    obj As Object _
) As Boolean
'Применение
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

Параметры

Возвращаемое значение

Тип: System.Boolean
true if the current InkRecognizerBase and the otherRecognizer are instances of the same InkRecognizerBase; otherwise, false.

Заметки

The object otherRecognizer is considered equal to this InkRecognizerBase if otherRecognizer and this InkRecognizerBase are instances of the same InkRecognizerBase.

Примеры

The following example determines whether the default recognizer and the Japanese recognizer in a InkRecognizerBaseCollection are equal.

' 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.
    }
}

Платформы

Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkRecognizerBase Класс

InkRecognizerBase - члены

System.Windows.Ink.AnalysisCore - пространство имен