wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-f9b34c3d.md
Gets the View currently used in the RichEditControl to display the document.
Namespace : DevExpress.Xpf.RichEdit
Assembly : DevExpress.Xpf.RichEdit.v25.2.dll
NuGet Package : DevExpress.Wpf.RichEdit
[Browsable(false)]
public RichEditView ActiveView { get; }
<Browsable(False)>
Public ReadOnly Property ActiveView As RichEditView
| Type | Description |
|---|---|
| RichEditView |
A RichEditView class instance that is the current view.
|
The RichEditControl.ActiveView property provides access to the currently active view. The returned RichEditView object options allow you to customize the target view.
richEditControl1.ActiveView.AllowDisplayLineNumbers = true;
richEditControl1.ActiveView.BackColor = System.Drawing.Color.Beige;
richEditControl1.ActiveView.AllowDisplayLineNumbers = True
richEditControl1.ActiveView.BackColor = System.Drawing.Color.Beige
Use the RichEditControl.ActiveViewType property to change the View. End users can change the current view using the Document Views buttons on the View ribbon tab.
These buttons execute the following commands:
The RichEditControl.ActiveViewChanged event is raised when the active view changes.
See Also