Knowledgebase Home Page  >  RapidSpell Desktop .NET  >  Behavior Customization
Search the Knowledge Base
(C#) How can I make the spell check TOTALLY case insensitive?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=49&catId=62

Options

Print this page
Email this to a friend
RapidSpell is sensitive to case, for example proper names must start with a capital letter.  Also, if 'AllowMixedCase' is set false (default) then words such as "miXed" will be marked as errors.  (An additional property 'IgnoreCapitalizedWords' can be set true to ignore the spelling of words in ALL CAPS.)
 
If total insensitivty is desired, a simple override of the default behavior can acheive this.
 
public class CustomSpellChecker : RapidSpellChecker
{
    protected override bool LookUpMainDictionary(string word)
    {
        //check case insensitively
        return base.LookUpMainDictionary(word.ToUpper());
    }
}
 
then you activate your subclass by setting the RapidSpellChecker property in RapidSpellAsYouType or the CheckerEngine property in RapidSpellDialog.
 
eg.
RapidSpellAsYouType1.RapidSpellChecker = new CustomSpellChecker ();
 
or
 
RapidSpellDialog1.CheckerEngine = new CustomSpellChecker ();

Related Questions:

Attachments:

No attachments were found.