Devexpress 具有多种语言的DivExpress拼写检查器
我需要检查英语和希腊语单词。我使用SpellCheckerOpenOfficeDictionary添加了英语和希腊语词典。但它不起作用Devexpress 具有多种语言的DivExpress拼写检查器,devexpress,Devexpress,我需要检查英语和希腊语单词。我使用SpellCheckerOpenOfficeDictionary添加了英语和希腊语词典。但它不起作用 Public Sub SpellCheckSettings(ByRef objSpellChecker As SpellChecker) Dim objDictionary, objGreekdic As SpellCheckerOpenOfficeDictionary Dim objCulture, objGreekCulture As Cul
Public Sub SpellCheckSettings(ByRef objSpellChecker As SpellChecker)
Dim objDictionary, objGreekdic As SpellCheckerOpenOfficeDictionary
Dim objCulture, objGreekCulture As CultureInfo
Try
objCulture = New CultureInfo("en-US")
objSpellChecker.Culture = objCulture
objDictionary = New SpellCheckerOpenOfficeDictionary(GetLanguageDictionaryPath("en_US.dic"), GetLanguageDictionaryPath("en_US.aff"), objCulture)
objSpellChecker.Dictionaries.Add(objDictionary)
objGreekCulture = New CultureInfo("el")
objGreekdic = New SpellCheckerOpenOfficeDictionary(GetLanguageDictionaryPath("el_GR.dic"), GetLanguageDictionaryPath("el_GR.aff"), objGreekCulture)
objSpellChecker.Dictionaries.Add(objGreekdic)
Catch ex As Exception
End Try
End Sub
如果我使用以上任何一种方法,拼写检查都会非常有效。任何人请帮助将拼写检查器的区域性设置为不变值。在这种情况下,拼写检查器将使用这两个词典来检查单词和计算建议。可以使用以下代码设置拼写检查器的区域性:
spellChecker1.Culture = System.Globalization.CultureInfo.InvariantCulture;
你能帮我设置固定区域性吗