Skip to main content

TdxRichEditControlBase.OnModifiedChanged Event

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

Declaration

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