HtmlSettingsAttribute.StyleAttributeFilterMode Property

Specifies the filtering mode for style attribute elements.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v21.1.dll


public HtmlEditorFilterMode StyleAttributeFilterMode { get; set; }

Property Value

Type Description

One of the HtmlEditorFilterMode enumeration values.

Available values:

Name Description

Specified elements are prohibited and will be removed; other elements will be maintained.


Specified elements are allowed and will be maintained; other elements will be removed.


HtmlEditor provides you with the capability to filter content elements. You can specify filter rules for tags, attributes, and style attributes.

Use the StyleAttributeFilterMode property to specify the filtering mode that is applied to the style attribute elements listed in the HtmlSettingsAttribute.StyleAttributesFilter property.

[HtmlSettings(StyleAttributeFilterMode = HtmlEditorFilterMode.WhiteList, StyleAttributesFilter = "color, text-align")]
See Also