Back to Devexpress

AutoCorrectOptions.ReplaceTextAsYouType Property

officefileapi-devexpress-dot-xtrarichedit-dot-autocorrectoptions-7a4bd14c.md

latest3.2 KB
Original Source

AutoCorrectOptions.ReplaceTextAsYouType Property

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ReplaceTextAsYouType { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ReplaceTextAsYouType As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to switch this functionality on; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ReplaceTextAsYouType
RichEditControlOptionsBase

.AutoCorrect .ReplaceTextAsYouType

|

Remarks

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

csharp
correctionOptions.DetectUrls = false;
correctionOptions.ReplaceTextAsYouType = true;
correctionOptions.UseSpellCheckerSuggestions = true;

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

vb
correctionOptions.DetectUrls = False
correctionOptions.ReplaceTextAsYouType = True
correctionOptions.UseSpellCheckerSuggestions = True

See Also

AutoCorrectOptions Class

AutoCorrectOptions Members

DevExpress.XtraRichEdit Namespace