Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.9
|
Leadtools.Forms.Ocr Assembly > Leadtools.Forms.Ocr Namespace > IOcrSpellCheckManager Interface : SpellLanguage Property |
string SpellLanguage {get; set;}
'Declaration
Property SpellLanguage As String
'Usage
Dim instance As IOcrSpellCheckManager Dim value As String instance.SpellLanguage = value value = instance.SpellLanguage
string SpellLanguage {get; set;}
public String getSpellLanguage() public void setSpellLanguage(String value)
<br/>get_SpellLanguage();<br/>set_SpellLanguage(value);<br/>Object.defineProperty('SpellLanguage');
The OcrEngineType.Professional supports only one spell check language at a time. This language must be enabled using SpellLanguage.
The OcrEngineType.Advantage engine supports multiple spell check languages and the engine automatically loads the language dictionaries based on the language(s) currently enabled in IOcrLanguageManager. Important: SpellLanguage is not used and will have no effect.
The name of the spelling language should be in the same format used in specifying character set languages as described in IOcrLanguageManager. Once you set a spell language and assuming the spell checking system is enabled, the engine will now use this language dictionary to check and correct the spelling of the recognized text.
You can get the names of the spelling languages supported by the system with the GetSupportedSpellLanguages method. The available languages (dictionaries) depends on the current spell check engine set in SpellCheckEngine.
In addition to the values returned by GetSupportedSpellLanguages, you can use the following special string case-sensitive values:
Value | Description |
---|---|
A null (Nothing in Visual Basic) string reference | Automatic spell language selection. If only one language has been enabled in the language environment with the IOcrLanguageManager.EnableLanguages method, then this language will be automatically selected for spelling too providing it is one of the languages supported by the spelling check system (one of the values returned by GetSupportedSpellLanguages). |
none | The checking subsystem will not use the Language dictionary at all. |
For more information about the spell checking system, refer to IOcrSpellCheckManager.