RichEditControl.ActiveViewType Property

Gets or sets the type of the RichEditControl's View.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v20.1.dll

Declaration

[DXCategory("Layout")]
public RichEditViewType ActiveViewType { get; set; }
<DXCategory("Layout")>
Public Property ActiveViewType As RichEditViewType

Property Value

Type Description
RichEditViewType

A RichEditViewType enumeration value specifying the active View type.

Remarks

The ActiveViewType property specifies the current RichEditControl view. Use the RichEditControl.ActiveView property to access the current view and change its options (zoom factor, background color, etc.)

Examples

This example demonstrates how to change the RichEditControl View using the RichEditControl.ActiveViewType property.

// Switch the RichEdit to the Draft mode.
richEditControl.ActiveViewType = RichEditViewType.Draft;

// Switch the RichEdit to the Simple mode.
richEditControl.ActiveViewType = RichEditViewType.Simple;

// Switch the RichEdit to the Print Layout mode.
richEditControl.ActiveViewType = RichEditViewType.PrintLayout;
See Also