[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    Spell Checking
    AutoCorrect Feature
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
   [Collapse]Visual Elements
     Command UI
     Views
     Rulers
     Reviewing Pane
     Pop-up Menus
    [Expand]Dialogs
     End User Restrictions
    Services
    Events
    Commands
    Keyboard Shortcuts
    HTML Tag Support
   [Expand]Examples
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Views

RichEditControl can display documents in three different ways depending on the applied document View.

End users can click the Document Views buttons on the View ribbon tab to change the active view. Refer to the How to: Create the RichEditControl with a Ribbon UI topic for information on how to provide a Ribbon UI for the RichEditControl.

The table below describes and compares the available views.

Simple View

Draft View

Print Layout View

API

RichEditControl.ActiveViewType set to RichEditViewType.Simple

SimpleView

RichEditControl.ActiveViewType set to RichEditViewType.Draft

DraftView

RichEditControl.ActiveViewType set to RichEditViewType.PrintLayout

PrintLayoutView

Description

Suitable for simple text and web pages. Shows how to the document looks as a website.

Used for text formatting. Shows how the document looks on a monitor.

Used for complex documents. Shows how the document looks as a printout.

Displayed Editor Elements

None

Horizontal Ruler

Horizontal and Vertical Rulers

Paging

Document is not split into pages.

Document is not split into pages.

Document is divided into pages.

Page Layout

No page layout options are applied.

Only the page width is applied. Multiple columns are displayed as a single column.

All page layout options are applied.

Floating Objects Position

Misplaced

Misplaced

Correct

Expanded View Options

You can use the RichEditControl.ActiveView property to access the current view. The returned RichEditView options allow you to customize the target view.

Use the RichEditLayoutOptions property to access view-specific options.

You can control the scrollbars' and rulers' visibility for any view. Use the following properties to customize the editing surface appearance:

The code sample below hides all rulers and scrollbars:

Is this topic helpful?​​​​​​​