Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Spell Check control? [closed]

Are there any libraries out there (preferably a self contained Text Edit Control) for .NET that have Spell Check capabilities. I would like to add the typical red underline to miss-spelled words in the edit area of my application.

Edit: To clarify, this is for WinForms

like image 494
Adam Haile Avatar asked Oct 31 '08 10:10

Adam Haile


People also ask

Why has spell check stopped working?

The Word spelling checker won't work if the text is set to the incorrect language. Make sure that the “Do not check spelling or grammar” option is turned off. If this box is selected, spelling and grammar will not be checked.

How do I reactivate my spell check?

Here's how. Click File > Options > Proofing, clear the Check spelling as you type box, and click OK. To turn spell check back on, repeat the process and select the Check spelling as you type box. To check spelling manually, click Review > Spelling & Grammar.

Why has my spell check disappeared?

Step 1: Make sure the file is opened. Step 2: Click on the File tab in the menu bar and select Options. Step 3: Select Proofing. Step 4: Make sure “Check "spelling as you type" is checked under “When Correcting Spelling and Grammar in Word”, then click Ok.

How do you spell check in C#?

To enable the spelling checker, set the SpellCheck. IsEnabled property to true on a text-editing control. When this spelling checker is enabled, misspelled words are underlined by using a red wavy line, as shown in the following illustration. Spelling checker is supported only when WPF provides a default dictionary.

What is the use of the spell check control?

The control is an extended version of the rich text box control and relies upon the Word.DLL check spelling function in order to support internal spell checking. The control may be useful if one were capturing free text entries from a user and it was deemed desirable to check the content of those free text entries for misspellings.

Is there a spell checker for ASP NET?

Telerik's control suite for ASP.NET comes with a spell-checker. You might check them out. Show activity on this post. You could embed the WPF spell checker using silverlight.

How do I enable spell check in the context menu?

Use the client spellCheck option or the server SpellCheck (Action<SpellCheckBuilder>) method (for .NET Core) to specify the following settings: Specifies whether the spell check is enabled. A function that checks a word. The maximum number of suggested words that can be displayed in the context menu.

How do I enable spell check in RichEdit?

The RichEdit control allows you to use third-party tools to implement spell check. Use the client spellCheck option or the server SpellCheck (Action<SpellCheckBuilder>) method (for .NET Core) to specify the following settings: Specifies whether the spell check is enabled. A function that checks a word.


4 Answers

Aspell.Net looks nice, but does not seem to be maintained anymore. I could not get it to work on my machine.

After searching around SourceForge, I found NHunspell, which is a .Net port of the spell checker from OpenOffice.org. It provides methods to spell check, find synonyms, and hyphenate. Its actively maintained at this time, and comes with easy to understand sample code.

In the project's own words:

Spell Checker, Hypenation and Thesaurus: NHunspell

NHunspell is a free open source spell checker for the .NET Framework. C# and Visual Basic sample code is available for spell checking, hyphenation and synonym lookup via thesaurus.

NHunspell is based on Hunspell and brings the Open Office spell checking, hyphenation and thesaurus to the Microsoft® .NET Framework. NHunspell is a .NET (C#, VB) library and wraps the native libraries Hunspell, Hyphen and MyThes.

The integrated libraries are used in OpenOffice and work with the dictionaries published on OpenOffice.org. License

NHunspell is licensed under: GPL/LGPL/MPL. Free use in commercial applications is permitted according to the LGPL and MPL licenses. Your commercial application can link against the NHunspell DLLs.

NHunspell

like image 99
Jim Counts Avatar answered Oct 29 '22 15:10

Jim Counts


Not a redlining control, but: Aspell.Net is a Free and Open Source .Net spell checking component. Based on the GNU Aspell project, Aspell.Net is one of the most powerful multi-lingual spelling engines available. The API is written in C# and communicates through a C++ wrapper around the Win32 Port of Aspell's C API.

Source repository at sourceforge, checked February 2010 (Tahnks, @magnifico).

May 2012, source no longer accessible... sorry.

like image 32
gimel Avatar answered Oct 29 '22 15:10

gimel


NHunspellTextBoxExtender, created by William Winner works. Once added to your project, can be used to extend textboxes and rich textboxes (any control that inherits TextBoxBase). Source code is included as well.

http://www.codeproject.com/KB/recipes/NHunspellExtenderProvider.aspx

like image 30
Michael Avatar answered Oct 29 '22 15:10

Michael


You didn't mention whether this was for web based use or a desktop app, but I have used netSpell in the past and had good success.

like image 22
John Lemp Avatar answered Oct 29 '22 15:10

John Lemp