Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

RichEditControl.Views Property

Contains settings of the Views that are used to display a document in the RichEdit Control.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v24.1.dll

NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.RichEdit, DevExpress.Win.TreeMap

#Declaration

[DXCategory("Layout")]
[XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)]
public RichEditViewRepository Views { get; }

#Property Value

Type Description
RichEditViewRepository

A RichEditViewRepository object which stores the settings of the document Views.

#Remarks

The RichEdit Control provides a number of views that are used to display a document in a specific manner. You can use the Views property to access the settings of all available views. E.g. the RichEditViewRepository.PrintLayoutView property contains settings of the PrintLayout view which allows end-users to display a document as it looks when printed.

The RichEdit Control object also has a number of properties which are synchronized with the corresponding properties (Views) of the RichEditViewRepository object. Although these properties are not visible via the Properties window at design time, they can be accessed via code. For instance, the PrintLayoutView property is synchronized with the RichEditViewRepository.PrintLayoutView property.

The currently selected view is accessible via the RichEditControl.ActiveView property. Use the RichEditControl.ActiveViewType property to select another view.

See Also