Languages Property
Languages Property |
Gets an array of language identifiers for the languages that the IInkRecognizer object supports.
Declaration
[C++]
[C++]
[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 value | Description |
---|---|
S_OK | Success. |
E_POINTER | The parameter is an invalid pointer. |
E_INK_EXCEPTION | An exception occurred inside the method. |
E_UNEXPECTED | Unexpected parameter or property type. |
Remarks
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.
Example
[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
Next
Next