The SpellLanguage Property is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Gets or sets a value that indicate the spelling language for the spell checking of the checking subsystem.Visual Basic (Declaration) | |
---|---|
Property SpellLanguage As String |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IOcrSpellCheckManager Dim value As String instance.SpellLanguage = value value = instance.SpellLanguage |
C# | |
---|---|
string SpellLanguage {get; set;} |
Property Value
A string value that represent the name of the spelling language for the spell checking of the checking subsystem.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.
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.
Note: This property is read only for the LEADTOOLS OCR Advantage Engine, setting this property will have no effect becuase the spell language will always be the same as the currently enabled language.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7