vcl-dxrichedit-dot-control-dot-core-dot-tdxricheditcontrolbase-cdd201a8.md
Provides access to the active document view and its settings.
property ActiveView: TdxRichEditView read;
| Type |
|---|
| TdxRichEditView |
Use this property to customize the active view’s settings that are common to all document views. Refer to the TdxRichEditView class description for detailed information on these settings. If you need to customize view-specific settings, you can:
Cast the ActiveView property value to a TdxRichEditView class descendant that corresponds to the ActiveViewType property value.
Use the corresponding setting accessible via the Views property.
| ActiveViewType Value | Document View Class | Dedicated Property |
|---|---|---|
| TdxRichEditType.Simple | TdxSimpleView | Views.Simple |
| TdxRichEditType.Draft | TdxDraftView | Views.Draft |
| TdxRichEditType.PrintLayout | TdxPrintLayoutView | Views.PrintLayout |
Note
Use the ActiveViewType property to switch between available document views. The OnActiveViewChanged event occurs every time the active document view changes.
See Also