RichEditControl.DocumentLoaded Event
Occurs after a document is loaded into the RichEdit control.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.XtraRichEdit.v18.1.dll
Declaration
Event Data
The DocumentLoaded event's data class is EventArgs.
Remarks
The DocumentLoaded event fires after executing the RichEditControl.LoadDocument or Document.LoadDocument method and after specifying values for the following properties:
- Document.Text
- Document.RtfText
- Document.OpenXmlBytes
- Document.WordMLText
- Document.HtmlText
- Document.MhtText
The DocumentLoaded fires when the document model is built and the loaded document is valid. Handle the DocumentLayout.DocumentFormatted event to check the loaded document’s layout.
Note
When an HTML document with external image references is loaded, the images are obtained asynchronously and the DocumentLoaded event cannot guarantee image availability at the moment it is raised. The RichEditControl does not provide a technique that allows you to determine the moment when all images are downloaded and inserted in a document.
Tip
A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T258534.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the DocumentLoaded 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.