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

2 posts, 0 answers
  1. fff
    fff avatar
    2 posts
    Member since:
    Jun 2016

    Posted 14 Jun Link to this post


    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,


  2. Tanya
    Tanya avatar
    377 posts

    Posted 16 Jun Link to this post

    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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft banner
Back to Top