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

how to count/detect error(s) on a string ?

1 Answer 63 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
fff
Top achievements
Rank 1
fff asked on 14 Jun 2016, 12:56 PM

Hi,

I would like to

 1-check spell on a string (a sentence in fact)

 2-open spellcheck dialog box only if errors>0 at step #1

 

I can handle the 2nd part=dialogbox and user query ... but likely stupidly, on the first part, I can not find how to test & count errors on a string in code behind :(

 

Any help just for that part would be appreciated,

F

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 16 Jun 2016, 03:25 PM
Hi Fabrice,

RadSpellChecker doesn't actually count the errors, but you could get the number of misspelled words using the MoveToNextError() method. This method will return an IWordInfo object when it finds an error and null otherwise. 

Hope this is helpful.

Regards,
Tanya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
SpellChecker
Asked by
fff
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or