Back to Devexpress

RichEditControl.ActiveView Property

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-f9b34c3d.md

latest2.9 KB
Original Source

RichEditControl.ActiveView Property

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

Declaration

csharp
[Browsable(false)]
public RichEditView ActiveView { get; }
vb
<Browsable(False)>
Public ReadOnly Property ActiveView As RichEditView

Property Value

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

csharp
richEditControl1.ActiveView.AllowDisplayLineNumbers = true;
richEditControl1.ActiveView.BackColor = System.Drawing.Color.Beige;
vb
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

ActiveViewType

ActiveViewChanged

Rich Text Editor Views

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace