Back to Devexpress

AutoCorrectOptions.UseSpellCheckerSuggestions Property

officefileapi-devexpress-dot-xtrarichedit-dot-autocorrectoptions-24e73223.md

latest3.5 KB
Original Source

AutoCorrectOptions.UseSpellCheckerSuggestions Property

Gets or sets whether AutoCorrect should correct misspelled words that are similar to words in the dictionary that the spelling checker uses.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool UseSpellCheckerSuggestions { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property UseSpellCheckerSuggestions As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to switch this functionality on; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UseSpellCheckerSuggestions
RichEditControlOptionsBase

.AutoCorrect .UseSpellCheckerSuggestions

|

Remarks

If there is one and only one suggested word provided by a spelling checker, this word is used as a replacement. If several suggestions are provided, AutoCorrect does not use them.

To learn more about spelling checker suggestions, see the PrepareSuggestionsEventArgs.Suggestions article.

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

winforms-richedit-text-autocorrect-feature/CS/Expander/Form1.cs#L38

csharp
correctionOptions.ReplaceTextAsYouType = true;
correctionOptions.UseSpellCheckerSuggestions = true;
#endregion #options

winforms-richedit-text-autocorrect-feature/VB/Expander/Form1.vb#L37

vb
correctionOptions.ReplaceTextAsYouType = True
            correctionOptions.UseSpellCheckerSuggestions = True
' #End Region ' #options

See Also

PrepareSuggestions

AutoCorrectOptions Class

AutoCorrectOptions Members

DevExpress.XtraRichEdit Namespace