Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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.ActiveViewType Property

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

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v24.1.dll

NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.RichEdit, DevExpress.Win.TreeMap

#Declaration

[DXCategory("Layout")]
public RichEditViewType ActiveViewType { get; set; }

#Property Value

Type Description
RichEditViewType

A RichEditViewType enumeration value specifying the active View type.

Available values:

Name Description
Simple

Specifies that the control is in a simple mode used for simple text and web pages. This mode shows how the document looks as a website.

Draft

Specifies that the control is in a draft mode.

PrintLayout

Specifies that the control is in a print layout mode. In this mode, the control displays pages with all formattings applied.

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

#Example

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;

The following code snippets (auto-collected from DevExpress Examples) contain references to the ActiveViewType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also