Spell Checker
Last updated
Last updated
Starting from version 2011 of the PPJ Framework, we have integrated and added spell checking capabilities to all editable controls:
SalDataField
SalMultilineField
SalComboBox
SalTableColumn
VisRichEdit
With spell checking enabled, the PPJ Framework checks words, as they are typed, using standard dictionary files, and immediately underlines spelling errors.
Spell Checking functionality in the PPJ Framework is entirely based on the open source spell checker Hunspell for 32bit and 64bit Windows
Hunspell is the spell checker of LibreOffice, OpenOffice.org and Mozilla Firefox 3 & Thunderbird, Google Chrome, and it is also used by proprietary softwares, like Mac OS X, memoQ, Opera and SDL Trados.
You can find more information here: http://hunspell.sourceforge.net
All editable controls (including VisRichEdit) have the property EnableSpellChecker. Setting this property to true automatically enables spell checking for the control. The spell checking engine uses the default language for the local Windows installation, or the language indicated for the specific control using the CultureInfo property.
The Spell Checker functionality included in the PPJ Framework can be added to other controls, including all WinForms editable controls derived from TextBoxBase, ComboBox and RichTextBox.
To enable spell checking on a control, simply add this line:
This is all that´s needed. To indicate a dictionary different from the default Windows language, use this:
You can change the line style used to underline spelling errors by setting the SpellChecker.LineStyle property in code:
Supported values are: ZigZagged (default), Dotted and Solid.