- 2 minutes to read
When the SpellChecker component finds a word that is not contained in the dictionaries associated with the current culture, the Spelling dialog can be used for making corrections. This dialog is invoked when a spell check is started.
This dialog enables end-users to do one of the following:
- Select one of the suggested corrections to replace the misspelled word (once, or every time it occurs);
- Skip the word;
- Ignore the word and all its future occurrences in the text;
- Add the word to a custom dictionary of the Spell Checker. Note that this option is available only if the custom dictionary is provided.
The Options… button invokes the Spelling Options Dialog dialog. The Undo button allows cancelling changes, step by step.
If the end user checks spelling of a selection in a text editor (MemoEdit or RichTextBox), the following message appears after the check is complete:
You can hide this message in the SpellCheckerBase.FinishCheckingMainPart event handler. Specify the FinishCheckingMainPartEventArgs.NeedCheckRemainingPart property as shown below:
private void SpellChecker1_FinishCheckingMainPart(object sender, FinishCheckingMainPartEventArgs e)
e.NeedCheckRemainingPart = false;
The message below appears when the document is checked or when the end user decided not to check the rest of the text:
The SpellChecker.CheckCompleteFormShowing event allows you to hide the Spelling Check Is Complete message. Set the Handled parameter to true in the event handler to disable this message.