TX Spell .NET is the perfect addition for TX Text Control to add professional, high-performance and reliable spell checking to your applications. Furthermore, combined with TX Text Control version 25.0, TX Spell .NET enables a fast way to hyphenate documents, detect language scopes and create synonyms.
This getting started tutorial is the shortcut to use TX Spell .NET for Windows Forms within Microsoft Visual Studio.
The source code for all steps is contained in the following directories:
1. Start Visual Studio .NET and create a new project. Select either Visual Basic or C# as a project type, and Windows Application as a template.
2. Find the TX Text Control 25.0 toolbox tab that was created automatically. All usable TX Text Control controls or components are listed in this tab.
3. Click on the TextControl icon and draw it on the form. Now, click on the Smart Tag in the upper right corner of the TextControl. To add the additional controls of TX Text Control, click on Add a Ribbon, Add a Status Bar, Add a Ruler and Add a Vertical Ruler. Finally, click on Arrange Controls Automatically. The controls are now connected and docked automatically.
4. On the form, select the ribbon control by clicking the blue File tab title in order to click on the Smart Tag in the upper right corner of the ribbon control. To add a ribbon tab that handles proofing features, click on Add a RibbonProofingTab.
5. Find the TX Spell 7.0 toolbox tab in Visual Studio. Drag and drop an instance of TXSpellChecker to your form. It is displayed in the component tray at the bottom of the form.
6. Click on the inserted TextControl and find the SpellChecker property in the Properties window. Click on the drop-down box and select the inserted TXSpellChecker instance.
7. In the same window, find the IsSpellCheckingEnabled property of TextControl and set it to true.
8. To enable hyphenation, set the IsHyphenationEnabled property of TextControl to true.
9. To enable language detection, set the IsLanguageDetectionEnabled property of TextControl to true.
Build and start the application to see the first results. The spell-as-you-type functionality and the English dictionary is enabled by default. Misspelled words are underlined automatically and can be corrected by using the shipped right-click context menu. Using this menu, you can open the integrated dialog box as well. In addition, on reaching the end of a line, the last word is hyphenated by using the corresponding English hyphenation list.
Selecting the RibbonProofingTab provides an interface to handle the main features of the SpellChecker. The corresponding spell checking and hyphenation buttons are toggled. The other buttons provide options to correct misspelled words, create synonyms, set and detect languages, as well as to handle spell checking, hyphenation, thesaurus settings.