Share via


InkRecognizerBaseCollection.GetPriorityInkRecognizer Method (Int32, InkRecognizerCapabilities)

Gets the first recognizer in the collection that supports both the specified capabilities and input from the specified locale.

Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in iacore.dll)

Syntax

'Declaration
Public Function GetPriorityInkRecognizer ( _
    languageId As Integer, _
    capabilities As InkRecognizerCapabilities _
) As InkRecognizerBase
'Usage
Dim instance As InkRecognizerBaseCollection
Dim languageId As Integer
Dim capabilities As InkRecognizerCapabilities
Dim returnValue As InkRecognizerBase

returnValue = instance.GetPriorityInkRecognizer(languageId, capabilities)
public InkRecognizerBase GetPriorityInkRecognizer (
    int languageId,
    InkRecognizerCapabilities capabilities
)
public:
InkRecognizerBase^ GetPriorityInkRecognizer (
    int languageId, 
    InkRecognizerCapabilities capabilities
)
public InkRecognizerBase GetPriorityInkRecognizer (
    int languageId, 
    InkRecognizerCapabilities capabilities
)
public function GetPriorityInkRecognizer (
    languageId : int, 
    capabilities : InkRecognizerCapabilities
) : InkRecognizerBase
Not applicable.

Parameters

  • languageId
    The locale identifier that the recognizer supports.
  • capabilities
    The capabilities that the recognizer supports.

Return Value

The first InkRecognizerBase in the collection that supports both the specified InkRecognizerCapabilities and input from the specified locale, or a null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) if the collection contains no such recognizer.

Example

The following example gets the first InkRecognizerBase from the InkRecognizerBaseCollection, theInkRecognizers, that supports both region-neutral Japanese input and boxed input.

' Get the first recognizer from the InkRecognizerCollection that supports
' both region neutral Japanese and boxed input.
Dim theFirstJapaneseBoxedInputInkRecognizer As System.Windows.Ink.AnalysisCore.InkRecognizerBase = _
    theInkRecognizers.GetPriorityInkRecognizer(&H11, _
        System.Windows.Ink.AnalysisCore.InkRecognizerCapabilities.BoxedInput)
// Get the first recognizer from the InkRecognizerCollection that supports
// both region neutral Japanese and boxed input.
InkRecognizerBase theFirstJapaneseBoxedInputInkRecognizer =
    theInkRecognizers.GetPriorityInkRecognizer(0x0011,
        System.Windows.Ink.AnalysisCore.InkRecognizerCapabilities.BoxedInput);

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkRecognizerBaseCollection Class
InkRecognizerBaseCollection Members
System.Windows.Ink.AnalysisCore Namespace