Infragistics(R) NetAdvantage(R) : WPF 2012.1
Spelling Options
E-mail your feedback on this topic.
Shared XAML > Editors > xamSpellChecker > Using xamSpellChecker > Spelling Options

Glossary Item Box

You can override the default settings of the xamSpellChecker control so that in certain situations your end users’ input can be accepted by the spell checker. For example, by default, words with mixed case would be considered a spelling error by the spell checker.

The SpellOptions object exposes many properties which allow you to customize how the xamSpellChecker control checks for spelling errors.

The following table explains each property, the default value, and an example to help you understand how each property determines how words are checked for spelling errors.

Property Default value Description Example
AllowAnyCase False This allows words to be spelled with any case. united states instead of United States
AllowCaseInsensitiveSuggestions False This allows suggestions for correctly spelled words with mixed cases. For example, if your end user entered tHe, when this property is set to False, your end user will not be presented with a list of spelling suggestions, however, if set to true, your end user will receive spelling suggestions.
AllowMixedCase False This allows words spelled with mixed cases. WpF
AllowWordsWithDigits False This allows words with numbers in them. Volume91
AllowXML False This allows XML and HTML tags
CheckHyphenatedText False If this property is set to True, then it will check the hyphenated text as separate words, however if it is false, it will check the hyphenated word as one word. For example, when set to True the word after-effect would be checked as two separate words, when set to False, the word would be checked as one hyphenated word. In both situations if either part is misspelled the whole word will be marked as wrong.
IncludeUserDictionaryInSuggestions False This specifies if the user dictionary should be used in finding suggestions for misspelled words Volume91
LanguageParser False This sets the language the parser should use. Where possible, this should match the language of the dictionary
SeparateHyphenWords False If this property is set to True, the hyphenated text is checked as two separate words. If one of the words is misspelled then only that word would be marked wrong. Cheap-deals
SuggestionMethod HashingSuggestions HashingSuggestions – Suggestions will be determined by hashing the text. This is the default value. PhonesticSuggestions – Suggestions will be determined phonetically.


The following code demonstrates how to allow the xamSpellChecker control to accept words with numbers and mixed case.



<ig:XamSpellChecker x:Name="spellChecker">
      <ig:SpellOptions AllowMixedCase="True" AllowWordsWithDigits="True"/>

In Visual Basic:

Me.spellChecker.SpellOptions.AllowMixedCase = True
Me.spellChecker.SpellOptions.AllowWordsWithDigits = True


In C#:

this.spellChecker.SpellOptions.AllowMixedCase = true;
this.spellChecker.SpellOptions.AllowWordsWithDigits = true;

Related Topics


Performance Options

How to Specify Text to be Spell Checked