[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Spell Checking
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    Keyboard Shortcuts
    HTML Tag Support
    [Expand]Text Boxes
    [Expand]Document Elements
    [Expand]Search and Replace
    [Expand]Mail Merge
    [Collapse]Spell Check
      How to: Check Spelling in RichEditControl
    [Expand]User Interface Customization
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Check Spelling in RichEditControl

The RichEditControl can use the spell checker component, the Spell Checker, to check spelling in a document.

If you create an application using the Template Gallery, then the SpellChecker component is added automatically. You have to specify necessary dictionaries as described in the SpellChecker - Getting Started article. To underline incorrect words, switch the Check-as-You-Type mode on by using the SpellChecker.SpellCheckMode property. Note that you cannot change the color and appearance of the underline used in the RichEditControl.

End-user interface of the RichEditControl, in its bar variation (Review bar) or Ribbon variation (Review Ribbon page) contains a button with an associated command, which starts the spell check. To assign F7 (or any available) shortcut to a command button, use the BarItem.ItemShortcut property.

If you wish to add spell check functionality to the RichEditControl in your existing application, review the Spell Checking article.

Instead of the XtraSpellChecker component, you can use any spell checker engine that exposes the ISpellChecker interface. You can easily implement a custom spell checker that utilizes, for example, the Google spell check engine for this purpose.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E3725.

Is this topic helpful?​​​​​​​