Components
TX Spell .NET for WPF consists of one component you declare in the XAML of a window, the dialogs and menus it brings, and one class for code without a user interface. Knowing which is which tells you what to add to a project and which page to read next.
The Components at a Glance
| Component | What it is | Package | Namespace |
|---|---|---|---|
| TXSpellChecker | The spell checker: connects to TX Text Control, checks other controls, hyphenates, finds synonyms and detects languages | TXTextControl.TXSpell.WPF.SDK | TXTextControl.WPF.Proofing |
| Spell Check Dialog and Options Dialog | The built-in dialogs for correcting words and for the settings | TXTextControl.TXSpell.WPF.SDK | TXTextControl.WPF.Proofing |
| Context Menu and Suggestion Controls | The spell check menu of TX Text Control, menu items for your own menus, and the suggestion lists of the dialog | TXTextControl.TXSpell.WPF.SDK | TXTextControl.WPF.Proofing |
| TXSpell | The same checks without a user interface, for code, services and servers | TXTextControl.TXSpell.Core.SDK, and the WPF package | TXTextControl.Proofing |
Package Overview describes what each package contains, and Product Architecture the assemblies and namespaces of the two classes.
How the Components Work Together
A TextControl with a connected TXSpellChecker asks it about each word the user types, underlines the misspelled ones and opens the spell check menu on a right-click. The menu opens both dialogs, and the spell check dialog opens the options dialog. Your code reaches all of them through the TXSpellChecker: the dialog through its SpellCheckDialog property, the options through OptionsDialog, the menu items through GetMenuItems.
TXSpell has the same methods for checking, suggestions, hyphenation, synonyms and language detection, but no dialogs, menus or events. It is what TX Text Control .NET Server uses, in code and behind its Document Editor.
Choose a Component
| Your text is in | Use | Start with |
|---|---|---|
| A TX Text Control editor | TXSpellChecker, connected through the SpellChecker property | Create Your First WPF Application |
A RichTextBox, a TextBox or another control | TXSpellChecker and its Check method | RichTextBox |
| No control: a string, a file, a service or a server | TXSpell | Checking Text in Code |
Pages in This Section
- TXSpellChecker: the spell checker, how it connects, an example and its key members.
- Spell Check Dialog and Options Dialog: the two built-in dialogs and what can be changed about them.
- Context Menu and Suggestion Controls: the spell check menu, menu items and the lists that show suggestions.
- TXSpell: spell checking without a user interface, on Windows and Linux.