Back to Devexpress

SpellCheckerBase.GetCommandsByError(SpellCheckErrorBase) Method

corelibraries-devexpress-dot-xtraspellchecker-dot-spellcheckerbase-dot-getcommandsbyerror-x28-devexpress-dot-xtraspellchecker-dot-rules-dot-spellcheckerrorbase-x29.md

latest2.1 KB
Original Source

SpellCheckerBase.GetCommandsByError(SpellCheckErrorBase) Method

Creates a list of commands, available to the end-user, which depend on the type of misspelling.

Namespace : DevExpress.XtraSpellChecker

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

NuGet Package : DevExpress.SpellChecker.Core

Declaration

csharp
public virtual List<SpellCheckerCommand> GetCommandsByError(
    SpellCheckErrorBase error
)
vb
Public Overridable Function GetCommandsByError(
    error As SpellCheckErrorBase
) As List(Of SpellCheckerCommand)

Parameters

NameTypeDescription
errorSpellCheckErrorBase

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

|

Returns

TypeDescription
List<SpellCheckerCommand>

A generic list of SpellCheckerCommand objects.

|

Remarks

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

See Also

SpellCheckerBase Class

SpellCheckerBase Members

DevExpress.XtraSpellChecker Namespace