Share via


InkRecognizerCollection.GetPriorityInkRecognizer Method (Int32)

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

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.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 InkRecognizer GetPriorityInkRecognizer (
    int languageId
)
public function GetPriorityInkRecognizer (
    languageId : int
) : InkRecognizer
Not applicable.

Parameters

  • languageId
    The locale identifier that the recognizer supports.

Return Value

The first InkRecognizer in the collection that supports 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 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 InkRecognizer = _
    theInkRecognizers.GetPriorityInkRecognizer(&H11)
// Get the first recognizer from the InkRecognizerCollection that supports
// region neutral Japanese input.
InkRecognizer theFirstJapaneseInkRecognizer =
    theInkRecognizers.GetPriorityInkRecognizer(0x0011);

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

InkRecognizerCollection Class
InkRecognizerCollection Members
System.Windows.Ink Namespace