Skip to main content

HtmlEditorSettings.ActiveView Property

Gets or sets the editor’s active view.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public HtmlEditorView ActiveView { get; set; }

Property Value

Type Description
HtmlEditorView

One of the HtmlEditorView enumeration values.

Available values:

Name Description
Design

Identifies the editor’s Design View.

Html

Identifies the editor’s HTML View.

Preview

Identifies the editor’s Preview View.

Remarks

The HtmlEditor allows end users to select the active view with a mouse click. The editor also provides the capability to select the active view type in code. You can use the ActiveView property for this purpose.

Note that the HtmlEditor always has the active view, and only a single view can be active within the control at one time.

Note

You can change the ActiveView property value on a postback, or on a callback sent for a view markup (e.g., when changing a view). Other callbacks cannot be used for changing the active tab.

See Also