Back to Devexpress

AutoCorrectOptions.CorrectTwoInitialCapitals Property

officefileapi-devexpress-dot-xtrarichedit-dot-autocorrectoptions-26f7c58b.md

latest3.2 KB
Original Source

AutoCorrectOptions.CorrectTwoInitialCapitals Property

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

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool CorrectTwoInitialCapitals { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property CorrectTwoInitialCapitals 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 CorrectTwoInitialCapitals
RichEditControlOptionsBase

.AutoCorrect .CorrectTwoInitialCapitals

|

Remarks

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

csharp
correctionOptions.CorrectTwoInitialCapitals = true;
correctionOptions.DetectUrls = false;

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

vb
correctionOptions.CorrectTwoInitialCapitals = True
correctionOptions.DetectUrls = False

See Also

AutoCorrect Feature

AutoCorrectOptions Class

AutoCorrectOptions Members

DevExpress.XtraRichEdit Namespace