Languages Property

Languages Property

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



[propget] HRESULT get_Languages ([out, retval] VARIANT* Languages);

[Microsoft® Visual Basic® 6.0]

[Visual Basic]
Public Property Get Languages() As Variant

Property Value

VARIANT The language identifiers for the languages that the IInkRecognizer object supports as a variant array of 16-bit integers.

This property is read-only.

For more information about the VARIANT structure, see Using the Automation Library.

Return Value

HRESULT valueDescription
E_POINTERThe parameter is an invalid pointer.
E_INK_EXCEPTIONAn exception occurred inside the method.
E_UNEXPECTEDUnexpected parameter or property type.


This property can be used to search the InkRecognizers collection for a IInkRecognizer that supports a specific language.

This property returns the empty array for gesture recognizers.


[Visual Basic 6.0]

This Visual Basic 6.0 example determines if the recognizer supports Japanese.

[Visual Basic]
Dim IsJapaneseSupported As Boolean
IsJapaneseSupported = False

Dim theRecognizer As IInkRecognizer
Dim theLanguage As Variant
For Each theRecognizer In theRecognizers
    For Each theLanguage In theRecognizer.Languages
         If theLanguage = &H411 Then ' LCID Constant for Japanese
            IsJapaneseSupported = True
        End If

Applies To

Related Topics