Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
    Overview
   [Expand]Getting Started
   [Expand]Fundamentals
   [Collapse]Concepts
     Text Formatting
     Import and Export
     Mail Merge
     Restrictions and Protection
     Line Numbering
     Table of Contents
     Check Spelling
     AutoCorrect
     Printing
     Syntax Highlighting
     Traversing the Document
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Member Tables
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

AutoCorrect

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.

Show Me

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

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=E3041.

How would you rate this topic?​​​​​​​