Skip to main content

RichEditControl.InitializeDocument Event

Occurs before a document is loaded. Handle this event to set initial document settings.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v23.2.dll

NuGet Package: DevExpress.Wpf.RichEdit


public event EventHandler InitializeDocument

Event Data

The InitializeDocument event's data class is EventArgs.


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.


Do not use this event to switch views or set view properties.

See Also