Back to Devexpress

RichEditControl.EmptyDocumentCreated Event

windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-c8a2c7ef.md

latest3.8 KB
Original Source

RichEditControl.EmptyDocumentCreated Event

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

Declaration

csharp
public event EventHandler EmptyDocumentCreated
vb
Public Event EmptyDocumentCreated As EventHandler

Event Data

The EmptyDocumentCreated event's data class is EventArgs.

Remarks

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

csharp
richEditControl1.EmptyDocumentCreated += RichEditControl1_EmptyDocumentCreated;
richEditControl1.DocumentLoaded += RichEditControl1_DocumentLoaded;

rich-text-editor-document-content-validator/CS/ContentAnalyzer/Form1.cs#L20

csharp
richEditControl.BeforeImport += OnBeforeImport;
richEditControl.EmptyDocumentCreated += OnEmptyDocumentCreated;
richEditControl.DocumentLoaded += OnDocumentLoaded;

how-to-specify-default-font-name-and-size/VB/DefaultDocumentSettingsExample/Form1.vb#L19

vb
AddHandler richEditControl1.EmptyDocumentCreated, AddressOf RichEditControl1_EmptyDocumentCreated
AddHandler richEditControl1.DocumentLoaded, AddressOf RichEditControl1_DocumentLoaded

rich-text-editor-document-content-validator/VB/ContentAnalyzer/Form1.vb#L22

vb
AddHandler richEditControl.BeforeImport, AddressOf OnBeforeImport
AddHandler richEditControl.EmptyDocumentCreated, AddressOf OnEmptyDocumentCreated
AddHandler richEditControl.DocumentLoaded, AddressOf OnDocumentLoaded

See Also

CreateNewDocument(Boolean)

DocumentLoaded

RichEditControl Class

RichEditControl Members

DevExpress.XtraRichEdit Namespace