[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
  [Expand]Rich Text Editor
  [Collapse]Spell Checker
   [Expand]Product Information
   [Expand]Getting Started
   [Collapse]Visual Elements
     Spelling Dialog
     Spelling Options Dialog
     Context Menu
   [Expand]Design-Time Features
  [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 (Learn more)

Context Menu

If the SpellChecker component is in your application, it can automatically embed its custom items to the context menu of DevExpress TextEdit and MemoEdit controls or its descendants. These items allow end-users to check spelling within these controls.

To enable this functionality at design time within Visual Studio, set the ShowSpellCheckMenu on spellChecker extender property to True for the TextEdit or MemoEdit control. Note, that at runtime you can modify this property's value via the SpellChecker.SetShowSpellCheckMenu method.

This adds the Check Spelling item to the context menu of the control to be checked by the SpellChecker component. The Check Spelling item starts spell checking and invokes the Spelling Dialog.


Although the ShowSpellCheckMenu on spellChecker extender property is available for standard TextBox and RichTextBox controls in the Properties window, it always returns False for them, because XtraSpellChecker doesn't provide the capability to automatically expand context menus for these standard controls. So, if there is a context menu for these controls, you should manually add the Check Spelling item to it.

If the SpellChecker checks spelling of the control as you type, the extended context menu of the control is invoked when an end-user right-clicks the incorrect word. This context menu contains additional items allowing end-users to automatically correct or skip a misspelled word:

  • the list of spelling suggestions to replace incorrect word;
  • the Ignore All item to skip all word occurrences in the text;
  • the Add to Dictionary item to add the word to a custom dictionary of the SpellChecker.

You can set the number of suggested words for display on the context menu by using the CheckAsYouTypeOptions.SuggestionCount property.

Also, you can use the CheckAsYouTypeOptions.ShowSpellCheckForm property to set whether the Spelling dialog can be invoked when SpellChecker is in the As You Type mode and the end-user selects the Check Spelling item from the context menu. It can be useful if you want to allow end-users to replace words only via the context menu.

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