Share via


InkRecognizerCollection.GetPriorityInkRecognizer Method (Int32)

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public Function GetPriorityInkRecognizer ( _
    languageId As Integer _
) As InkRecognizer
'Usage
Dim instance As InkRecognizerCollection 
Dim languageId As Integer 
Dim returnValue As InkRecognizer 

returnValue = instance.GetPriorityInkRecognizer(languageId)
public InkRecognizer GetPriorityInkRecognizer(
    int languageId
)
public:
InkRecognizer^ GetPriorityInkRecognizer(
    int languageId
)
public function GetPriorityInkRecognizer(
    languageId : int
) : InkRecognizer

Parameters

  • languageId
    Type: System.Int32

    The locale identifier that the recognizer supports.

Return Value

Type: Microsoft.Ink.InkRecognizer
The first InkRecognizer in the collection that supports input from the specified locale, or nulla null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) if the collection contains no such recognizer.

Examples

The following example gets the first InkRecognizer from the InkRecognizerCollection, theInkRecognizers, that supports region-neutral Japanese input.

' Get the first recognizer from the InkRecognizerCollection that supports 
' region neutral Japanese input. 
Dim theFirstJapaneseInkRecognizer As Microsoft.Ink.InkRecognizer = _
    theInkRecognizers.GetPriorityInkRecognizer(&H11)
            // Get the first recognizer from the InkRecognizerCollection that supports 
            // region neutral Japanese input.
            Microsoft.Ink.InkRecognizer theFirstJapaneseInkRecognizer =
                theInkRecognizers.GetPriorityInkRecognizer(0x0011);

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkRecognizerCollection Class

InkRecognizerCollection Members

GetPriorityInkRecognizer Overload

Microsoft.Ink Namespace