Share via


Recognizer.Languages Property

Gets an array of language identifiers for the languages that the Recognizer object supports.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public ReadOnly Property Languages As Short()
'Usage
Dim instance As Recognizer
Dim value As Short()

value = instance.Languages
public short[] Languages { get; }
public:
property array<short>^ Languages {
    array<short>^ get ();
}
/** @property */
public short[] get_Languages ()
public function get Languages () : short[]
Not applicable.

Property Value

The language identifiers for the languages that the Recognizer object supports.

Remarks

This property can be used to search the Recognizers collection for a Recognizer object that supports a specific language.

This property returns the empty array for object and gesture recognizers.

Example

This C# example determines if the Recognizer object, theRecognizer, supports the Japanese language.

using Microsoft.Ink;
// . . .
bool isJapaneseSupported = false;
short[] theLanguages = theRecognizer.Languages;
for (int k = 0; k < theLanguages.Length; k++)
{
    // Hex 411 is the LCID Constant for Japanese
    if (theLanguages[k] == 0x0411)
        isJapaneseSupported = true;
}

This Microsoft® Visual Basic® .NET example determines if the Recognizer object, theRecognizer, supports the Japanese language.

Imports Microsoft.Ink
' . . .
Dim isJapaneseSupported As Boolean = False
Dim theLanguages () As Short
theLanguages = theRecognizer.Languages
Dim k As Integer
For k = 0 To theLanguages.Length - 1
    ' Hex 411 is the LCID Constant for Japanese
    If theLanguages(k) = &H411 Then
        IsJapaneseSupported = True
    End If
Next

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

Recognizer Class
Recognizer Members
Microsoft.Ink Namespace
Recognizers