Back to Devexpress

SpellCheckerCommand.DoCommand() Method

corelibraries-devexpress-dot-xtraspellchecker-dot-spellcheckercommand.md

latest2.9 KB
Original Source

SpellCheckerCommand.DoCommand() Method

Performs an action of the corresponding type.

Namespace : DevExpress.XtraSpellChecker

Assembly : DevExpress.SpellChecker.v25.2.Core.dll

NuGet Package : DevExpress.SpellChecker.Core

Declaration

csharp
public virtual void DoCommand()
vb
Public Overridable Sub DoCommand

Remarks

The DoCommand method initializes the DevExpress.XtraSpellChecker.Strategies.TextOperationsManager instance and performs an action of the corresponding type, specified by the SpellCheckerCommand.Operation value.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DoCommand() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-add-spell-check-menu-items-to-the-standard-text-controls/CS/WpfApp1/MainWindow.xaml.cs#L42

csharp
menuItem.Header = command.Caption;
menuItem.Click += (s, args) => command.DoCommand();
menuItem.IsEnabled = command.Enabled;

how-to-add-spell-check-menu-items-to-the-standard-text-controls/VB/WpfApp1/MainWindow.xaml.vb#L41

vb
AddHandler menuItem.Click, Sub(s, args) richEditCommand.DoCommand()

winforms-spreadsheet-spell-check-cell-text/VB/SpreadsheetSpellchecking/Form1.vb#L72

vb
Dim checkerCommand = TryCast(e.Item.Tag, SpellCheckerCommand)
    checkerCommand?.DoCommand()
End Sub

See Also

SpellCheckerCommand Class

SpellCheckerCommand Members

DevExpress.XtraSpellChecker Namespace