Log In
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    HTML Tag Support
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation


As you type, each typed character is examined by the AutoCorrect service. When you type a character that typically means you have finished typing a word, AutoCorrect compares the word (or more precisely the group of characters) against its list of entries. It the word matches an entry, AutoCorrect substitutes the replacement text for a word.

AutoCorrect considers various characters to mean you've finished typing a word. These characters are spaces, punctuation and carriage returns.

If AutoCorrect makes an unwanted correction when you are editing a document, you can undo it by pressing CTRL+Z.

RichEditControl provides you with several built-in autocorrect techniques, and also gives you an opportunity to construct a substitution table or handle a special event.

Expanded Automatic Hyperlink Detection

When you type in a web address, a network path, or email addresses in your document, they will appear as hyperlinks. This option is controlled via the AutoCorrectOptions.DetectUrls property.

Expanded Correct Two Initial Capitals

Automatically corrects capitalization errors. This option is controlled via the AutoCorrectOptions.CorrectTwoInitialCapitals property.

Expanded Use SpellChecker Suggestions

Automatically detect and correct typos and misspelled words. RichEditControl should have the spell checker component specified by the RichEditControl.SpellChecker property. If the spell checker provides a single suggestion, this suggestion automatically substitutes the incorrect word. If there are more than one suggestion, no changes are made. This option is controlled via the AutoCorrectOptions.UseSpellCheckerSuggestions property.

Expanded Automatic Correction Using Table Entries

Enables you to quickly insert symbols or any long piece of text, and even images, so you can implement your own text expander functionality.

To implement this feature, create a new AutoCorrectReplaceInfoCollection, fill it with AutoCorrectReplaceInfo entries and use the IAutoCorrectService.SetReplaceTable method to register this table for use with RichEditControl.

Expanded Automatic Correction Using Custom Procedure

Enables you to quickly insert symbols or any long piece of text, and even images, so you can implement your own text expander functionality.

To implement this feature, handle the RichEditControl.AutoCorrect event to analyze the input and provide the object for replacement. The input text is available via the AutoCorrectInfo.Text property. You can expand, shrink and move the text sample. The AutoCorrectInfo provides the required methods, such as AutoCorrectInfo.IncrementStartPosition or AutoCorrectInfo.DecrementStartPosition. The object used to substitute the text input is assigned to the AutoCorrectInfo.ReplaceWith property. It can be a string or an image.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E3281.

Is this topic helpful?​​​​​​​