Get Spelling errors from RadRichTextBox

2 posts, 0 answers
  1. Rabeeh
    Rabeeh  avatar
    62 posts
    Member since:
    Sep 2007

    Posted 15 Jun 2011 Link to this post

    Hi guys,

    How can I be able to get all the Spelling errors from the RadRichTextBox. 

    I browsed the methods of : ((DocumentSpellChecker)this.richTextArea.SpellChecker)

    But I couldn't find a method that returns the collection of words that have spelling errors.

    Any ideas ?

  2. Boby
    Boby avatar
    631 posts

    Posted 17 Jun 2011 Link to this post

    Hi Rabeeh ,

    You can get a list of all incorrect words as follows:
    DocumentProofingManager proofingManager = new DocumentProofingManager((RadDocument)this.radRichTextBox.Document.CreateDeepCopy(), this.radRichTextBox.SpellChecker, this.radRichTextBox.IgnoredWords);
    var incorrectWords = proofingManager.GetIncorrectWordList();
    // if you need a list of strings:
    //var incorrectWords = proofingManager.GetIncorrectWordList().Select(wordInfo => wordInfo.Word);

    Don't hesitate to contact us if you have other questions.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top