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

HtmlEditorHtmlEditingSettings.AllowStyleAttributes Property

Gets or sets a value that specifies whether the editor’s HTML markup can contain style attributes.

Namespace: DevExpress.Web.ASPxHtmlEditor

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

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
Boolean **true**

true if style attributes are allowed within the editor’s content; false if style attributes are automatically removed from the editor’s HTML markup.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowStyleAttributes
ASP.NET Controls and MVC Extensions ASPxHtmlEditor
.SettingsHtmlEditing .AllowStyleAttributes
ASP.NET MVC Extensions HtmlEditorBinderSettings
.HtmlEditingSettings .AllowStyleAttributes
HtmlEditorSettings
.SettingsHtmlEditing .AllowStyleAttributes
MVCxHtmlEditor
.SettingsHtmlEditing .AllowStyleAttributes
See Also