windowsforms-devexpress-dot-xtraspellchecker-dot-spellchecker-2e3ffe40.md
Gets or sets the XtraSpellChecker’s operation mode.
Namespace : DevExpress.XtraSpellChecker
Assembly : DevExpress.XtraSpellChecker.v25.2.dll
NuGet Package : DevExpress.Win.SpellChecker
[DefaultValue(SpellCheckMode.OnDemand)]
[XtraSerializableProperty]
public SpellCheckMode SpellCheckMode { get; set; }
<DefaultValue(SpellCheckMode.OnDemand)>
<XtraSerializableProperty>
Public Property SpellCheckMode As SpellCheckMode
| Type | Default | Description |
|---|---|---|
| SpellCheckMode | OnDemand |
A SpellCheckMode enumeration member.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
Use this property to switch to the spell-as-you-type operation mode and back to the simple spelling check. The spell-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 snippets (auto-collected from DevExpress Examples) contain references 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.
xtraspellchecker-getting-started-lesson-2-e2413/CS/WindowsApplication1/Form1.cs#L17
private void Form1_Load(object sender, EventArgs e) {
spellChecker1.SpellCheckMode = SpellCheckMode.AsYouType;
spellChecker1.Check(memoEdit1);
winforms-spell-checker-get-started/CS/XtraSpellCheckerGetStarted/Form1.cs#L36
// Set spell checking options.
spellChecker1.SpellCheckMode = DevExpress.XtraSpellChecker.SpellCheckMode.AsYouType;
spellChecker1.ParentContainer = this;
winforms-spellchecker-enable-in-text-box/CS/Form1.cs#L22
spellChecker1.Culture = CultureInfo.InvariantCulture;
spellChecker1.SpellCheckMode = SpellCheckMode.AsYouType;
}
winforms-spreadsheet-spell-check-cell-text/CS/SpreadsheetSpellchecking/Form1.cs#L19
spellChecker.SpellCheckMode = SpellCheckMode.AsYouType;
xtraspellchecker-getting-started-lesson-2-e2413/VB/WindowsApplication1/Form1.vb#L19
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
spellChecker1.SpellCheckMode = SpellCheckMode.AsYouType
spellChecker1.Check(memoEdit1)
winforms-spell-checker-get-started/VB/XtraSpellCheckerGetStarted/Form1.vb#L31
' Set spell checking options.
spellChecker1.SpellCheckMode = DevExpress.XtraSpellChecker.SpellCheckMode.AsYouType
spellChecker1.ParentContainer = Me
winforms-spellchecker-enable-in-text-box/VB/Form1.vb#L22
spellChecker1.Culture = CultureInfo.InvariantCulture
spellChecker1.SpellCheckMode = SpellCheckMode.AsYouType
End Sub
winforms-spreadsheet-spell-check-cell-text/VB/SpreadsheetSpellchecking/Form1.vb#L22
SpellCheckTextBoxBaseFinderManager.[Default].RegisterClass(GetType(TextBoxWithTransparency), GetType(TextBoxFinder))
spellChecker.SpellCheckMode = SpellCheckMode.AsYouType
popupMenu.Manager = BarManager
See Also