windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-c8a2c7ef.md
Occurs when a new document is created in the RichEdit Control.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.XtraRichEdit.v25.2.dll
NuGet Package : DevExpress.Win.RichEdit
public event EventHandler EmptyDocumentCreated
Public Event EmptyDocumentCreated As EventHandler
The EmptyDocumentCreated event's data class is EventArgs.
The EmptyDocumentCreated event is fired after the RichEditControl.CreateNewDocument method is executed.
The following code snippets (auto-collected from DevExpress Examples) contain references to the EmptyDocumentCreated event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
how-to-specify-default-font-name-and-size/CS/DefaultDocumentSettingsExample/Form1.cs#L25
richEditControl1.EmptyDocumentCreated += RichEditControl1_EmptyDocumentCreated;
richEditControl1.DocumentLoaded += RichEditControl1_DocumentLoaded;
rich-text-editor-document-content-validator/CS/ContentAnalyzer/Form1.cs#L20
richEditControl.BeforeImport += OnBeforeImport;
richEditControl.EmptyDocumentCreated += OnEmptyDocumentCreated;
richEditControl.DocumentLoaded += OnDocumentLoaded;
how-to-specify-default-font-name-and-size/VB/DefaultDocumentSettingsExample/Form1.vb#L19
AddHandler richEditControl1.EmptyDocumentCreated, AddressOf RichEditControl1_EmptyDocumentCreated
AddHandler richEditControl1.DocumentLoaded, AddressOf RichEditControl1_DocumentLoaded
rich-text-editor-document-content-validator/VB/ContentAnalyzer/Form1.vb#L22
AddHandler richEditControl.BeforeImport, AddressOf OnBeforeImport
AddHandler richEditControl.EmptyDocumentCreated, AddressOf OnEmptyDocumentCreated
AddHandler richEditControl.DocumentLoaded, AddressOf OnDocumentLoaded
See Also