officefileapi-devexpress-dot-xtrarichedit-dot-autocorrectoptions-26f7c58b.md
Gets or sets whether AutoCorrect should change the second of two initial capitals to lowercase .
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool CorrectTwoInitialCapitals { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property CorrectTwoInitialCapitals As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to switch this functionality on; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to CorrectTwoInitialCapitals |
|---|---|
| RichEditControlOptionsBase |
.AutoCorrect .CorrectTwoInitialCapitals
|
Use the IAutoCorrectService.SetReplaceTable method to add exceptions, such as “JScript”.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CorrectTwoInitialCapitals 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#L35
correctionOptions.CorrectTwoInitialCapitals = true;
correctionOptions.DetectUrls = false;
winforms-richedit-text-autocorrect-feature/VB/Expander/Form1.vb#L34
correctionOptions.CorrectTwoInitialCapitals = True
correctionOptions.DetectUrls = False
See Also