RichEditControl.ActiveViewType Property
Gets or sets the type of the View which is currently used by the RichEditControl to show the document.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.XtraRichEdit.v18.1.dll
Declaration
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. In this mode, the width of displayed pages depends upon the control’s width. Page formatting is not in effect. |
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
To access the current View of the RichEdit control, use the RichEditControl.ActiveView property.
Example
This example demonstrates how to programmatically change the View of a RichEdit control. To do this, change the value of 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;
Related GitHub Examples
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.