Skip to main content
A newer version of this page is available. .

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.

Views-DraftView

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.

See Also