Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpellChecker in WPF .NET

Tags:

.net

wpf

I am trying to implement a "underline\fix while you type spell checker" can anyone point me to some examples.

like image 973
none Avatar asked Mar 16 '09 12:03

none


2 Answers

You don't need to WPF has a built in spell checker.

 <TextBox Name="x" SpellCheck.IsEnabled="True" Language="en-us"></TextBox>

When a word is misspelled in the textbox it will:

  • Underlines the misspelled word in red.
  • Right clicking the word will show a context menu with suggestions.

The spelling suggestions is taken from the dictionary used by Office2007. You don’t need Office 2007 installed as it uses a copy of the dictionary. However, the functionality will be the same.

like image 55
cgreeno Avatar answered Oct 17 '22 01:10

cgreeno


.NET Netspell Spellchecker is a free (open source) Spell Checking library in case you were looking for how others have implemented it.

like image 35
George Stocker Avatar answered Oct 17 '22 01:10

George Stocker