Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxRichEditControlBase.OnModifiedChanged Event

In This Article

Enables you to track an opened document’s modified state.

#Declaration

Delphi
property OnModifiedChanged: TNotifyEvent read; write;

#Remarks

This event occurs every time the DocumentModelModified property value changes, that is when:

  • A new content change is made in a document.

  • The Undo command rolls back the first unsaved change.

  • The Redo command restores an unsaved change.

  • A new or imported document replaces the current document.

  • A document with pending changes is saved to file.

Handle this event to track the document state in your application. For example, you can enable or disable certain UI elements in response to document changes. Use the Sender parameter within an OnModifiedChanged event handler to access the control that raised the event. Cast the parameter value to the TdxRichEditControl class to access the control-specific members.

Note

The OnModifiedChanged event never occurs when a document save operation is not related to the opened document state (for instance, when you save a copy of the opened document to a stream).

See Also