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

SpellChecker.GetCommandsByError(SpellCheckErrorBase) Method

Creates a list of commands, available to the end-user, which depend on the type of misspelling and current spellchecker operation mode.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.XtraSpellChecker.v24.2.dll

NuGet Package: DevExpress.Win.SpellChecker

#Declaration

public override List<SpellCheckerCommand> GetCommandsByError(
    SpellCheckErrorBase error
)

#Parameters

Name Type Description
error SpellCheckErrorBase

A DevExpress.XtraSpellChecker.Rules.SpellCheckErrorBase object, representing a situation when a misspelled word is found.

#Returns

Type Description
List<SpellCheckerCommand>

A generic list of SpellCheckerCommand objects.

#Remarks

The GetCommandsByError method is used to construct menu commands, depending on the SpellCheckMode, specific to different spelling check failure situations, such as misspelled word with suggestions available, the same with no suggestions, repeated word and so on.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetCommandsByError(SpellCheckErrorBase) 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.

See Also