I have created a TextEditor control, which consists of an UltraFormattedTextEditor with a toolbar of available functionality.
I have an UltraSpellChecker associated with this control. When spell checking any text, the user can select "Add Word to Dictionary" and the word is successfully added to their User Dictionary.
How do I make the Ignore functionality work? (At the moment, the user can select "Ignore Once" or "Ignore All", and the word is ignored. But when the user saves this document and opens it again, the spell checker underlines the word as mispelled; i.e. it does not remember to ignore the word.)
Setting the UserDictionary property makes the "Add to Dictionary" option appear.
This will not control if suggested words are available in the context menu when right clicking on a word (like the functionality that is available in Microsoft Word).
I'm not entirely sure how you'd do this, because I did not require this functionality. I'd probably try something like the idea of the following code which auto corrects a word:
if (cElement != null){Error spellError = this.ultraSpellChecker1.GetErrorAtPoint(this.ultraFormattedTextEditor1, cElement.Rect.Location);if (spellError != null){
Hope this helps,Kate
Hey Katie,
Yes it works now. Only thing is that I get to see "Add To Dictionary" option in the dialog box. I have mode to set as " OnValidatingand AsYouType" in the ultraspellchecker. I am using UltraFormattedTextEditor too. But culdn't see the option in the context menu.
Are you suing dialog box for the user to select this option. Word does have this option on right click (Context menu).
Any suggestions.
Thanks
Hi there,To get the "Add to Dictionary" option, specify a path for the UserDictionary property of the spell checker
this.ultraSpellChecker1.UserDictionary = Path.Combine(Path.Combine(Path.Combine(System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Exact Abacus"), "3EXNET"), "UserDictionaryForDesignSystem.txt");
Hope this helps,Katie :-)
Katie
How did you get the "Add Word to Dictionary" option ??
There is currently no way to automatically or manually restore a collection of ignored words. I would recommend submitting a feature request for this functionality: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.