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

Custom Words in dictionary

1 Answer 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Denis Cilliers
Top achievements
Rank 1
Denis Cilliers asked on 24 Sep 2012, 10:55 AM
How would I add custom words or fields to a dictionary so that I can use the spell checker to also check that the client has types the fields correctly

Such as in the following

Dear <<CustomerName>>
  
Your invoice number <<InvoiceNo>> is due on the following date <<InvoiceDate>>
  
Etc

I had in mind making the <<CustomerName>> a special word in a custom dictionary

1 Answer, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 27 Sep 2012, 10:17 AM
Hello Denis,

You can create a custom dictionary by reading the online documentation here

Alternatively, you can add the word to the current dictionary in the following way:
RadSpellChecker spellChecker = new RadSpellChecker();
IControlSpellChecker controlSpellChecker = spellChecker.GetControlSpellChecker(typeof(RadRichTextBox));
controlSpellChecker.SpellChecker.AddWord("Your word");

I hope this helps.
 
All the best,
Svett
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
General Discussions
Asked by
Denis Cilliers
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or