TX Spell .NET for Windows Forms

Spell Checking

Topic

Spell checking in TX Spell .NET for Windows Forms reaches the user in two ways: misspelled words are underlined while they type, and a dialog walks through them when they ask for a check. Behind both is one TXSpellChecker component, which also hands your code the incorrect words and their suggestions. Read on for what users see and how you control it, from connecting the first editor to building a correction interface of your own.

A TextControl with red zigzag lines under misspelled words and the spell check context menu of the word "sampke".

How Spell Checking Works

A TXSpellChecker on the form holds the dictionaries and does the checking. How it reaches the text depends on the control:

  • TX Text Control checks the words itself once its SpellChecker property names the spell checker. It underlines misspelled words, offers suggestions in its context menu and opens a spelling dialog, all without code.
  • Any other control, such as a TextBox or a RichTextBox, passes its text to the spell checker's Check method. The result is a list of incorrect words that your code marks, or that the spell check dialog of TX Spell .NET walks through.

One spell checker serves every control on a form, and its dictionaries decide the languages. Dictionaries and Languages covers them.

Find the Right Page

If you want toRead
Underline misspelled words while the user typesAs-You-Type Checking
Start a check from a button and correct words in a dialogChecking on Demand
Read the misspelled words and their suggestions in codeIncorrect Words and Suggestions
Skip words in capitals, with numbers, URLs or e-mail addressesIgnore Settings
Use one spell checker for several editorsChecking Multiple Controls
Check only chosen headers, footers or text framesChecking Text Parts
Build a correction panel or dialog of your ownSpelling Correction Modes and UI Provider
React to corrections, dialogs and dictionary changesEvents

Where to Start

  1. As-You-Type Checking connects the spell checker to an editor, the step every other page builds on.
  2. Checking on Demand adds the spelling dialog.
  3. Ignore Settings adjusts what is reported, before users meet false alarms.

If the component is not on your form yet, Getting Started sets it up. The dialogs and menus themselves, and how to change them, are the subject of User Interface.

Pages in This Section