[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [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]Gantt Control
  [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
    AutoCorrect Feature
    Track Changes
    Mail Merge
    Restrictions and Protection
   [Expand]Visual Elements
    Keyboard Shortcuts
    HTML Tag Support
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst 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]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com

Spell Checking

The RichEditControl uses the Spell Checker component to implement the spell checking functionality.

Perform the following steps to add a spell checker to your application:

Expanded Add the SpellChecker component

The SpellChecker is added automatically when the RichEditControl application is created using the Template Gallery. Drag the SpellChecker component icon from Visual Studio's toolbox onto the form to add the SpellChecker to the application manually. The RichEditControl.SpellChecker property is set once the component is placed onto the form.


When the RichEditControl is used as a repository editor in XtraGrid, spelling suggestions could be missing from the context menu if the RichEditorControl is not on the same form as the SpellChecker. To avoid this, force menu creation by calling the SpellChecker.SetShowSpellCheckMenu method within the ColumnView.ShownEditor event.

Expanded Add Dictionaries

Add one of the following Dictionaries:

Dictionary Culture

The SpellCheckerOptions.AutoDetectDocumentCulture property determines whether the SpellChecker automatically detects current text's culture (returned by the CharacterPropertiesBase.Language property) and selects the corresponding dictionary. If the AutoDetectDocumentCulture property is false and the SpellCheckerBase.Culture is set to "En-US", the SpellChecker uses the English dictionary to check spelling.

When you add dictionaries and set the AutoDetectDocumentCulture property to false, the SpellChecker uses dictionaries that correspond with the SpellCheckerBase.Culture property. Set the Culture property to Invariant to use all dictionaries.

Expanded Specify the SpellChecker options

Fine-tune the spell checker. Use one of the following properties to specify the spell checker's options:

API Description
SpellChecker.OptionsSpelling Provides access to the OptionsSpelling instance that contains options that affect text processing.
RichEditControlOptionsBase.SpellChecker Obtains a SpellCheckerOptions object containing options that specify how the spell checker should process text in any document range.
SpellChecker.SpellCheckMode Gets or sets the XtraSpellChecker's operation mode.
SpellCheckerBase.SpellingFormType Gets or sets the type of form that is shown when a possible misspelled word is found.

SpellChecker.CheckAsYouTypeOptions property does not affect the RichEditControl.

Expanded Result

End users can use the Spelling item on the Review ribbon tab to check the document's spelling. The invoked Spelling Dialog allows you to select the misspelled word's replacement, skip it or add it to the dictionary.

The SpellCheckMode.AsYouType mode underlines misspelled words. End users can right-click these words and replace them with a suggestion from the context menu or invoke the Spelling Dialog by clicking the Spelling item.


The SpellChecker does not underline misspelled words in multiple controls at the same time. Words are underlined in the focused control only. Use the SpellChecker.CheckContainer method to check spelling in multiple controls at once on demand.

Expanded See Also

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