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

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.v18.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Views property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also