Back to Devexpress

TdxRichEditControlBase.ActiveView Property

vcl-dxrichedit-dot-control-dot-core-dot-tdxricheditcontrolbase-cdd201a8.md

latest2.2 KB
Original Source

TdxRichEditControlBase.ActiveView Property

Provides access to the active document view and its settings.

Declaration

delphi
property ActiveView: TdxRichEditView read;

Property Value

Type
TdxRichEditView

Remarks

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 ValueDocument View ClassDedicated Property
TdxRichEditType.SimpleTdxSimpleViewViews.Simple
TdxRichEditType.DraftTdxDraftViewViews.Draft
TdxRichEditType.PrintLayoutTdxPrintLayoutViewViews.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

TdxRichEditControlBase

TdxRichEditControlBase.Views

TdxRichEditControlBase Members

dxRichEdit.Control.Core Unit