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

Get Spelling errors from RadRichTextBox

1 Answer 70 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Rabeeh
Top achievements
Rank 2
Rabeeh asked on 15 Jun 2011, 02:38 PM
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 ?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 17 Jun 2011, 02:05 PM
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.


Greetings,
Boby
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
Tags
RichTextBox
Asked by
Rabeeh
Top achievements
Rank 2
Answers by
Boby
Telerik team
Share this question
or