RichEditControl.InitializeDocument Event
Occurs before a document is loaded. Handle this event to set initial document settings.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.XtraRichEdit.v20.1.dll
NuGet Package: DevExpress.Win.RichEdit
Declaration
Event Data
The InitializeDocument event's data class is EventArgs.
Remarks
By handling this InitializeDocument event you can specify initial document settings, such as Document.DefaultCharacterProperties, Document.DefaultParagraphProperties, Section.Page settings, Section.LineNumbering settings and tab stops via the Paragraph.BeginUpdateTabs method etc.
Note
Do not use this event to switch views or set view properties.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InitializeDocument 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.