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

ASPxHtmlEditorSettings.AllowDesignView Property

Gets or sets a value that specifies whether the Design View is available to end-users.

Namespace: DevExpress.Web.ASPxHtmlEditor

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

Declaration

[DefaultValue(true)]
public bool AllowDesignView { get; set; }

Property Value

Type Default Description
Boolean **true**

true to enable the editor’s Design View; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowDesignView
ASPxHtmlEditor
.Settings.AllowDesignView
HtmlEditorSettings
.Settings.AllowDesignView
MVCxHtmlEditor
.Settings.AllowDesignView

Remarks

If the AllowDesignView property is set to false, the editor’s Design tab is not displayed, and end-users are not allowed to modify the editor’s content using visual UI elements (such as toolbar buttons).

Example

The complete sample project is available in the DevExpress Code Central database at E377.

...
<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" Html='<%# Bind("Html") %>'>
     <SettingsImageUpload>
          <ValidationSettings AllowedFileExtensions=".jpg, .png, .gif">
          </ValidationSettings>
     </SettingsImageUpload>
     <Settings AllowDesignView="False" AllowHtmlView="False" />
</dx:ASPxHtmlEditor>
...

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowDesignView 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