RadSpell for ASP.NET

Ignoring Words And Fragments Send comments on this topic.
SpellChecking > Ignoring Words And Fragments

Glossary Item Box

RadSpell can be configured to ignore certain words or text fragments by setting its WordIgnoreOptions and FragmentIgnoreOptions properties:

WordIgnoreOptions

  • None - no words will be ignored when spellchecking
  • UPPERCASE - specifies to ignore words in CAPITALS (e.g. 'UNESCO')
  • WordsWithCapitalLetters - specifies to ignore words in Capitals (e.g. 'Washington')
  • RepeatedWords - specifies to not consider repeating words as errors (e.g. 'very very')
  • WordsWithNumbers - specifies to ignore words containing numbers (e.g. 'l8r')

FragmentIgnoreOptions

  • None - no fragments will be ignored when spellchecking
  • FileNames - specifies to ignore filenames when spellchecking (e.g. 'C:\Temp\Document.doc')
  • Urls - specifies to ignore Urls when spellchecking (e.g. 'http://www.telerik.com/Telerik RadSpell')
  • EmailAddresses - specifies to ignore Email addresses when spellchecking (support@telerik.com)
  • All - specifies to ignore all fragments above when spellchecking

Example

The example below demonstrates how to set multiple WordIgnoreOptions and multiple FragmentIgnoreOptions

ASPX

<rad:radspell id="RadSpell1" runat="server"
 wordignoreoptions="UPPERCASE,RepeatedWords"
 fragmentignoreoptions="EmailAddresses,Urls"
/>

C#

RadSpell1.WordIgnoreOptions = WordIgnoreOptions.UPPERCASE | WordIgnoreOptions.RepeatedWords;
RadSpell1.FragmentIgnoreOptions = FragmentIgnoreOptions.EmailAddresses | FragmentIgnoreOptions.Urls;

VB.NET

RadSpell1.WordIgnoreOptions = WordIgnoreOptions.UPPERCASE Or WordIgnoreOptions.RepeatedWords
RadSpell1.FragmentIgnoreOptions = FragmentIgnoreOptions.EmailAddresses Or FragmentIgnoreOptions.Urls