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

Simple View

  • 2 minutes to read

The SimpleView is suitable for typing and spell checking. To use it, set the RichEditControl.ActiveViewType property to the RichEditViewType.Simple value.

The Simple view does not split the document into pages, so the document has no page width or height, margins, headers or footers. Floating objects are normally positioned with respect to page boundaries, and this view displays floating pictures and text boxes misplaced. The view is much like the Web layout view in Microsoft Word.

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

Views-SimpleView

The Simple view does not display rulers.

The Simple view can be used in simple text and RTF editors for in-place editing. To prevent floating objects from being displayed, set the DocumentCapabilitiesOptions.FloatingObjects option to DocumentCapability.Disabled value.

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

Horizontal and vertical rulers in the Simple view are hidden by default. However, you can display them by setting the corresponding RulerOptions.Visibility property to RichEditRulerVisibility.Visible value.

Tip

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

See Also