RichEditControl.ActiveView Property
Gets the View currently used in the RichEditControl to display the document.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v24.2.dll
NuGet Package: DevExpress.Wpf.RichEdit
Declaration
Property Value
Type | Description |
---|---|
RichEditView | A RichEditView class instance that is the current view. |
Remarks
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;
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.