officefileapi-devexpress-dot-xtrarichedit-dot-autocorrectoptions-7a4bd14c.md
Gets or sets whether AutoCorrect should scan for entries as you type and replace them with designated text or image.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ReplaceTextAsYouType { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ReplaceTextAsYouType As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to switch this functionality on; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to ReplaceTextAsYouType |
|---|---|
| RichEditControlOptionsBase |
.AutoCorrect .ReplaceTextAsYouType
|
Use the IAutoCorrectService.SetReplaceTable method, to specify AutoCorrect entries.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ReplaceTextAsYouType 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#L37
correctionOptions.DetectUrls = false;
correctionOptions.ReplaceTextAsYouType = true;
correctionOptions.UseSpellCheckerSuggestions = true;
winforms-richedit-text-autocorrect-feature/VB/Expander/Form1.vb#L36
correctionOptions.DetectUrls = False
correctionOptions.ReplaceTextAsYouType = True
correctionOptions.UseSpellCheckerSuggestions = True
See Also