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.OnEmptyDocumentCreated Event

In This Article

Enables you to respond to a document create operation in the Rich Edit control.

#Declaration

Delphi
property OnEmptyDocumentCreated: TNotifyEvent read; write;

#Remarks

This event occurs every time the NewDocument end-user command, a CreateNewDocument or Document.CreateNewDocument procedure call successfully replaces the opened document with a new blank document. For instance, you can handle the OnEmptyDocumentCreated event to pre-populate new documents.

The Sender parameter provides access to the Rich Edit control that raised the OnEmptyDocumentCreated event. Cast the parameter value to the TdxRichEditControl class to access all class-specific members of the control.

See Also