[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
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    AutoCorrect
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    Services
    Events
    Commands
    HTML Tag Support
   [Expand]Examples
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Events

This document is a brief overview of events implemented in the RichEditControl.

When a new document is created in RichEditControl via the RichEditControl.CreateNewDocument method or the CreateEmptyDocumentCommand command, the RichEditControl.EmptyDocumentCreated event is raised.

When a document is loaded in RichEditControl, the RichEditControl.DocumentClosing event occurs. It enables you to take the necessary steps before the content of the previously loaded document is discarded. Then the RichEditControl.BeforeImport event is raised, enabling you to configure the importer, and the RichEditControl.DocumentLoaded event indicates that the loading process is finalized.

The RichEditControl.ContentChanged event indicates changes in the control content, while the RichEditControl.ModifiedChanged event occurs when the current document is modified and the RichEditControl.Modified property is changed. The ModifiedChanged event is not raised when a document is loaded or saved.

Note

If the loaded document contains fields and RichEditMailMergeOptions.ViewMergedData is set to true, the fields are automatically updated and the ModifiedChanged event fires.

When a document is saved, the RichEditControl.BeforeExport event occurs, enabling you to customize export settings (e.g., specify the location to store external content when the document is saved in HTML).

A special RichEditControl.UnhandledException event provides an easy-to-use method for processing exceptions that are not handled by RichEditControl.

Some events are implemented to allow the customization of RichEditControl. The RichEditControl.PopupMenuShowing event allows you to modify a popup menu before it is shown.

User activity can be tracked by events such as RichEditControl.SelectionChanged, RichEditControl.HyperlinkClick, RichEditControl.StartHeaderFooterEditing and RichEditControl.ZoomChanged.

The mail merge process is also accompanied by events - RichEditControl.MailMergeStarted, RichEditControl.MailMergeRecordStarted, RichEditControl.MailMergeRecordFinished and RichEditControl.MailMergeFinished.

Special purpose events are RichEditControl.AutoCorrect and RichEditControl.CalculateDocumentVariable.

For more information, refer to the list of RichEditControl class members in the RichEditControl topic.

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