Where is the user dictionary for SpellChecker

7 posts, 0 answers
  1. Govinda
    Govinda avatar
    7 posts
    Member since:
    Jul 2008

    Posted 23 Mar 2012 Link to this post

    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
  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 27 Mar 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Govinda
    Govinda avatar
    7 posts
    Member since:
    Jul 2008

    Posted 27 Mar 2012 Link to this post

    Thanks Svett,

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

    Thank You,
    Govinda
  5. Govinda
    Govinda avatar
    7 posts
    Member since:
    Jul 2008

    Posted 27 Mar 2012 Link to this post

    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
  6. Svett
    Admin
    Svett avatar
    728 posts

    Posted 30 Mar 2012 Link to this post

    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 >>
  7. Dharma
    Dharma avatar
    5 posts
    Member since:
    Jul 2012

    Posted 28 Aug 2012 Link to this post

    ty
  8. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 29 Aug 2012 Link to this post

    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 >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready