Skip to main content

TdxRichEditControlBase.OnEmptyDocumentCreated Event

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

Declaration

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