.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

RichEditDocumentServer.DocumentLoaded Event

Occurs after a document is loaded.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v21.1.Core.dll


public event EventHandler DocumentLoaded

Event Data

The DocumentLoaded event's data class is EventArgs.


The DocumentLoaded event fires after the RichEditDocumentServer.LoadDocument or Document.LoadDocument method call. The event is also raised when the following properties change their values:

The DocumentLoaded fires when the document model is built and the loaded document is valid.


The RichEditDocumentServer does not provide a technique to determine the moment when all images with external references are downloaded and inserted in an HTML document.

The code sample below shows how to update fields in the main body of a loaded document:

richEditDocumentServer.DocumentLoaded += RichEditDocumentServer_DocumentLoaded;

private void RichEditDocumentServer_DocumentLoaded(object sender, EventArgs e)
    RichEditDocumentServer control = sender as RichEditDocumentServer;
    if (control.Document.Fields.Count != 0)


See Also