Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[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]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
    Overview
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Concepts
   [Collapse]Visual Elements
    [Expand]Rich Edit Control
    [Expand]Command UI
    [Expand]Dialogs
    [Collapse]Views
      Simple View
      Draft View
      Print Layout View
   [Expand]Examples
   [Expand]Member Tables
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Draft View

The DraftView can be used for text formatting. To switch to the view, set the RichEditControl.ActiveViewType property to the RichEditViewType.Draft value.

The Draft view layout applies only the page width, so the document is not actually split into pages thus having no header or footer. Multiple columns are displayed as a single column. Floating objects are normally positioned with respect to page boundaries, and this view displays floating pictures and text boxes misplaced. The view is like the Draft view in Microsoft Word.

A typical Draft view layout is shown in the following picture.

The Draft view displays the horizontal ruler.

To prevent floating objects from being displayed, set the DocumentCapabilitiesOptions.FloatingObjects option to DocumentCapability.Disabled value.

The RichEdit API implements the DraftView class for the Draft view. In code, you can specify the RichEditView.BackColor and distance between the document text and the control's inner boundaries (the DraftView.Padding property). To specify whether the text should be wrapped, use the SimpleView.WordWrap property.

To specify the page width, use the SectionPage.Width property.

Tip

The view of the RichEditControl which is currently in use is accessible by the RichEditControl.ActiveView property.

Expanded See Also

How would you rate this topic?​​​​​​​