Back to Devexpress

SpellChecker.SpellCheckMode Property

windowsforms-devexpress-dot-xtraspellchecker-dot-spellchecker-2e3ffe40.md

latest5.6 KB
Original Source

SpellChecker.SpellCheckMode Property

Gets or sets the XtraSpellChecker’s operation mode.

Namespace : DevExpress.XtraSpellChecker

Assembly : DevExpress.XtraSpellChecker.v25.2.dll

NuGet Package : DevExpress.Win.SpellChecker

Declaration

csharp
[DefaultValue(SpellCheckMode.OnDemand)]
[XtraSerializableProperty]
public SpellCheckMode SpellCheckMode { get; set; }
vb
<DefaultValue(SpellCheckMode.OnDemand)>
<XtraSerializableProperty>
Public Property SpellCheckMode As SpellCheckMode

Property Value

TypeDefaultDescription
SpellCheckModeOnDemand

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 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

csharp
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

csharp
// Set spell checking options.
spellChecker1.SpellCheckMode = DevExpress.XtraSpellChecker.SpellCheckMode.AsYouType;
spellChecker1.ParentContainer = this;

winforms-spellchecker-enable-in-text-box/CS/Form1.cs#L22

csharp
spellChecker1.Culture = CultureInfo.InvariantCulture;
    spellChecker1.SpellCheckMode = SpellCheckMode.AsYouType;
}

winforms-spreadsheet-spell-check-cell-text/CS/SpreadsheetSpellchecking/Form1.cs#L19

csharp
spellChecker.SpellCheckMode = SpellCheckMode.AsYouType;

xtraspellchecker-getting-started-lesson-2-e2413/VB/WindowsApplication1/Form1.vb#L19

vb
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

vb
' Set spell checking options.
spellChecker1.SpellCheckMode = DevExpress.XtraSpellChecker.SpellCheckMode.AsYouType
spellChecker1.ParentContainer = Me

winforms-spellchecker-enable-in-text-box/VB/Form1.vb#L22

vb
spellChecker1.Culture = CultureInfo.InvariantCulture
    spellChecker1.SpellCheckMode = SpellCheckMode.AsYouType
End Sub

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

vb
SpellCheckTextBoxBaseFinderManager.[Default].RegisterClass(GetType(TextBoxWithTransparency), GetType(TextBoxFinder))
spellChecker.SpellCheckMode = SpellCheckMode.AsYouType
popupMenu.Manager = BarManager

See Also

SpellChecker Class

SpellChecker Members

DevExpress.XtraSpellChecker Namespace