This is a migrated thread and some comments may be shown as answers.

Where is the user dictionary for SpellChecker

6 Answers 208 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Govinda
Top achievements
Rank 1
Govinda asked on 23 Mar 2012, 03:31 PM
Hi,

When the spell checker form comes up the user is given the option to "Add to dictionary", which tells the program to store that word and don't flag it as a misspelling.
If this was done accidentally by a user how would they be able to undo that selection?
Where is that information stored? Where is the file? Can it be edited?

Thank You,
Govinda

6 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 27 Mar 2012, 03:44 PM
Hello Govinda,

The ignored words are stored in a custom dictionary file stored in the isolated storage of the application. You can remove the word from the word dictionary by using the following code snippet:

IControlSpellChecker controlSpellChecker= spellChecker.GetControlSpellChecker(typeof(yourTextBoxControlType));
controlSpellChecker.SpellChecker.RemoveWord("yourWord");

Notice that yourTextBoxControlType should be TextBox, RadTextBox, RichTextBox or RadRichTextBox. Regards,
Svett
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Govinda
Top achievements
Rank 1
answered on 27 Mar 2012, 04:27 PM
Thanks Svett,

Any plans on having a way for end users to manage the words in the user dictionary?

Thank You,
Govinda
0
Govinda
Top achievements
Rank 1
answered on 27 Mar 2012, 04:38 PM
Hi,
Any way I can get a list of word added by the user so that I can build a screen that they can use to remove these words?

Thank You,
Govinda
0
Svett
Telerik team
answered on 30 Mar 2012, 07:46 AM
Hello Govinda,

You can use the following code snippet to get all words that are added to the custom dictionary:

IControlSpellChecker controlSpellChecker = spellChecker.GetControlSpellChecker(typeof(yourControlType));
            DocumentSpellChecker documentSpellChecker = controlSpellChecker.SpellChecker as DocumentSpellChecker;
            ICustomWordDictionary customWordDictionary = documentSpellChecker.GetCustomDictionary(documentSpellChecker.SpellCheckingCulture);
            IEnumerable<string> words = customWordDictionary.Words;

We are always trying to improve the usability of the suite. Therefore, we would like to hear your feedback regarding the words that are added by the user?
Regards,
Svett
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Dharma
Top achievements
Rank 1
answered on 28 Aug 2012, 04:52 PM
ty
0
Stefan
Telerik team
answered on 29 Aug 2012, 05:30 AM
Hello Dharma,

This forum thread concerns RadControls for WinForms, not RadControls for Silverlight. Please address your question in the appropriate forums to get adequate response: http://www.telerik.com/community/forums/silverlight/richtextbox.aspx.
 
Kind regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
TextBox
Asked by
Govinda
Top achievements
Rank 1
Answers by
Svett
Telerik team
Govinda
Top achievements
Rank 1
Dharma
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or