Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DraftView Class

Represents a draft view of the Rich Edit control.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[ComVisible(true)]
public class DraftView :
    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.

Views-DraftView

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.

See Also