Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

How to: Obtain a List of Commands for the Misspelled Word

The code below shows how to obtain the list of spellCheck commands for the clicked misspelled word.

Use the SpellCheckerCommand.DoCommand method to execute this command.

using DevExpress.XtraSpellChecker;
using DevExpress.XtraSpellChecker.Rules;
// ...
Point position = e.Control.PointToClient(e.Position);
SpellCheckErrorBase error = spellChecker1.CalcError(position);
List<SpellCheckerCommand> commands = spellChecker1.GetCommandsByError(error);
See Also