Back to Devexpress

DraftView Class

officefileapi-devexpress-dot-xtrarichedit-40a34f4a.md

latest3.0 KB
Original Source

DraftView Class

Represents a draft view of the Rich Edit control.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[ComVisible(true)]
public class DraftView :
    PageBasedRichEditView
vb
<ComVisible(True)>
Public Class DraftView
    Inherits PageBasedRichEditView

The following members return DraftView objects:

Remarks

The draft view is the view without pagination. It does not display complex formatting features pertinent to the page layout, such as columns, headers or footers. Use it for text formatting.

The Draft view looks as illustrated in the following picture.

To switch to the view, set the RichEditControl.ActiveViewType property to the RichEditViewType.Draft value or execute the SwitchToDraftViewCommand command.

Some options specific for the DraftView can be set using the DraftViewLayoutOptions class instance.

Tip

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

Implements

INotifyPropertyChanged

IDisposable

Inheritance

Object RichEditView PageBasedRichEditView DraftView

See Also

DraftView Members

Views in Rich Text Editor for WinForms

How To: Add Line Numbering in the Rich Text Editor

DevExpress.XtraRichEdit Namespace