PPJ Manual
HomeCurrent IssuesDownloads
  • Welcome
  • Releases
    • PPJ 2023
  • PPJ 2023
  • PPJ Web API
  • PPJ Desktop API
  • Wisej.NET Documentation
  • General
    • Framework
      • Features
        • SAL and SQL Functions
        • Constants and Variables
        • SalContext
        • Visual Toolchest
        • XSal2
        • Reporting Support
        • LINQ Support
        • SalCompileAndEvaluate
        • Unicode Support
        • Startup Arguments
        • App.config
      • Data Types
        • Automatic Casts
        • Dynamic Arrays
      • Controls
        • ToolBar
        • TabControl
        • TableWindow
        • QuickObject
        • Ribbon Bar
        • NavigationBar
      • SQL Support
        • Configuration
        • ADO.NET Drivers
        • Bind and Into Variables
        • DBP Parameters
        • SqlContext
      • Extensions
        • Table Window
        • Unicode Support
        • Bug Fixes
        • Object Oriented Types
        • Custom Parsers
        • Named Properties
        • Microsoft Charts
        • Tabbed MDI
        • Watermark
        • HTML Rendering
      • Skins and Themes
        • Skin Files
        • Theme Files
        • Configuration
        • Skin Editor
        • Theme Builder
      • Tracing
        • Trace Viewer
        • Default Listeners
        • Tracing the Application
      • Spell Checker
        • Dictionaries
    • Ported Application
      • Project Structure
        • Late Bind Calls
        • Visual Styles
        • Unqualified References
        • Message Actions
        • When SQLError
        • Classes
      • Global Items
      • Forms
      • COM/ActiveX
      • Multiple Inheritance
      • Configuration Tool
      • Issues & Workarounds
    • Ported Reports
      • General
      • Crystal Reports
        • Structure
        • Unsupported Features
      • List & Label
        • Report Conversion
        • Structure
        • Document
        • Input Items
        • Passing Data
        • Unsupported Features
      • Reporting Services
        • Features
      • Stimulsoft
        • Break Groups
        • Fields
        • Formulas
        • Cache Mode
Powered by GitBook
On this page
  • Hunspell
  • Enable the Spell Checker
  • Enable the Spell Checker on other controls
  • Change the Line Style

Was this helpful?

  1. General
  2. Framework

Spell Checker

PreviousTracing the ApplicationNextDictionaries

Last updated 2 years ago

Was this helpful?

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.

Hunspell

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.

Enable the Spell Checker

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.

Enable the Spell Checker on other controls

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:

new SpellChecker(this.textBox1);

This is all that´s needed. To indicate a dictionary different from the default Windows language, use this:

new SpellChecker(this.textBox1, "de-DE);
// or
new SpellChecker(this.textBox1, CultureInfo.GetCultureInfo("de-DE));

Change the Line Style

You can change the line style used to underline spelling errors by setting the SpellChecker.LineStyle property in code:

SpellChecker.LineStyle = SpellCheckerLineStyle.Solid;

Supported values are: ZigZagged (default), Dotted and Solid.

You can find more information here:

http://hunspell.sourceforge.net