Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

[Browsable(false)]
public RichEditView ActiveView { get; }

#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.

image

These buttons execute the following commands:

The RichEditControl.ActiveViewChanged event is raised when the active view changes.

See Also