Back to Devexpress

SpellChecker.SpellCheckMode Property

wpf-devexpress-dot-xpf-dot-spellchecker-dot-spellchecker.md

latest3.4 KB
Original Source

SpellChecker.SpellCheckMode Property

Gets or sets the DXSpellChecker’s operation mode.

Namespace : DevExpress.Xpf.SpellChecker

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

NuGet Package : DevExpress.Wpf.SpellChecker

Declaration

csharp
public SpellCheckMode SpellCheckMode { get; set; }
vb
Public Property SpellCheckMode As SpellCheckMode

Property Value

TypeDescription
SpellCheckMode

A SpellCheckMode enumeration member.

|

Available values:

NameDescription
OnDemand

Starts spelling check and invokes the spelling form for making corrections.

| | AsYouType |

Starts spelling check when you finish typing the word or move the cursor after changing it.This operation mode underlines the misspelled word and allows you to select a suggestion from the context menu, invoked by right-clicking the word.

|

Remarks

Use the SpellCheckMode property to switch to the check-as-you-type operation mode, and back to the simple spelling check. The check-as-you-type mode underlines the misspelled word and allows you to select a suggestion from the context menu, invoked by right-clicking the word.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SpellCheckMode property.

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.

spell-checker-bind-dictionaries-in-mvvm-applications/CS/DXSpellCheckerBindingDictionaries/ViewModel/MainViewModel.cs#L21

csharp
SpellChecker.SpellingFormType = SpellingFormType.Word;
SpellChecker.SpellCheckMode = SpellCheckMode.AsYouType;
SpellChecker.Culture = new CultureInfo("de-DE");

spell-checker-bind-dictionaries-in-mvvm-applications/VB/DXSpellCheckerBindingDictionaries/ViewModel/MainViewModel.vb#L22

vb
SpellChecker.SpellingFormType = SpellingFormType.Word
SpellChecker.SpellCheckMode = SpellCheckMode.AsYouType
SpellChecker.Culture = New CultureInfo("de-DE")

See Also

SpellChecker Class

SpellChecker Members

DevExpress.Xpf.SpellChecker Namespace