vcl-169001-expressspellchecker-getting-started.md
This topic describes how to create a simple application that uses the ExpressSpellChecker to check a TcxMemo control’s contents.
To provide a TcxMemo control with the spell-checking capabilities, follow the steps below:
Drop a TcxMemo ( ) control from the Component Palette’s Express Editors page, and the TdxSpellChecker ( ) component from the DevExpress page onto a form.
Select the TdxSpellChecker component. In the Object Inspector , click the ellipsis button next to TdxSpellChecker.DictionaryItems to add dictionaries, which will be used for checking.
The TdxSpellChecker supports the following dictionaries: Hunspell, ISpell, OpenOffice (uses the Hunspell format) and user-defined dictionaries.
Dictionary file. Use the dictionary’s DictionaryPath property to specify the dictionary file’s location. By default, the dictionary file is located in the “Developer Express.VCL\ExpressSpellChecker\Demos\Data” folder.
Affix file. This file is required for the ISpell and Hunspell (OpenOffice) dictionaries. These dictionaries use it to build words from an affix-compressed dictionary file (see the DictionaryPath property). Use the dictionary’s GrammarPath property to specify the affix file’s location. By default, the affix file is located in the “Developer Express.VCL\ExpressSpellChecker\Demos\Data” folder.
Language encoding. Use the dictionary’s Language property, to specify language specifics. If this property is not specified, the host environment’s settings are used instead.
For the ISpell dictionary, use the dictionary’s CodePage property to specify the corresponding character encoding, to properly load the dictionary, if its code page is different than the host environment’s code page.
Setting the dictionary’s Alphabet property is optional. This property specifies the language alphabet that is used to improve suggestion analysis when building a suggestion list.
// ...
<SpellChecker>.Check(<Memo>);