Back to Devexpress

ASPxHtmlEditor.ActiveView Property

aspnet-devexpress-dot-web-dot-aspxhtmleditor-dot-aspxhtmleditor.md

latest2.1 KB
Original Source

ASPxHtmlEditor.ActiveView Property

Gets or sets the editor’s active view.

Namespace : DevExpress.Web.ASPxHtmlEditor

Assembly : DevExpress.Web.ASPxHtmlEditor.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(HtmlEditorView.Design)]
public HtmlEditorView ActiveView { get; set; }
vb
<DefaultValue(HtmlEditorView.Design)>
Public Property ActiveView As HtmlEditorView

Property Value

TypeDefaultDescription
HtmlEditorViewDesign

One of the HtmlEditorView enumeration values.

|

Available values:

NameDescription
Design

Identifies the editor’s Design View.

| | Html |

Identifies the editor’s HTML View.

| | Preview |

Identifies the editor’s Preview View.

|

Remarks

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

Note that the ASPxHtmlEditor always has the active view, and only a single view can be active in the control at the same 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 an active tab.

See Also

HTML Editor

ASPxHtmlEditor Class

ASPxHtmlEditor Members

DevExpress.Web.ASPxHtmlEditor Namespace