Um Ihr Problem zu lösen, können Sie die NHunspell Bibliothek verwenden.
Ihre Prüfungsverfahren in diesem Fall ist sehr einfach und sieht wie folgt aus:
bool CheckSpell(string word)
{
using (Hunspell hunspell = new Hunspell("en_GB.aff", "en_GB.dic"))
{
return hunspell.Spell(word);
}
}
Sie Wörterbücher auf this site finden.
Sie können auch SpellCheck Klasse verwenden:
bool CheckSpell(string word)
{
TextBox tb = new TextBox();
tb.Text = word;
tb.SpellCheck.IsEnabled = true;
int index = tb.GetNextSpellingErrorCharacterIndex(0, LogicalDirection.Forward);
if (index == -1)
return true;
else
return false;
}
Mögliches Duplikat [? Was ist die beste Rechtschreibprüfung Bibliothek für C#] (http://stackoverflow.com/questions/453611/what-is-the -best-spell-checking-library-for-c) –