Back to Devexpress

ASPxHtmlEditorSettings.AllowDesignView Property

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

latest2.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool AllowDesignView { get; set; }
vb
<DefaultValue(True)>
Public Property AllowDesignView As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to AllowDesignView
ASP.NET MVC ExtensionsHtmlEditorSettings

.Settings .AllowDesignView

| | ASP.NET Web Forms Controls | ASPxHtmlEditor |

.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.

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

See Also

AllowHtmlView

AllowPreview

HTML Editor

ASPxHtmlEditorSettings Class

ASPxHtmlEditorSettings Members

DevExpress.Web.ASPxHtmlEditor Namespace