A newer version of this page is available. Switch to the current version.

ASPxHtmlEditor.StylesContextMenu Property

Provides access to the style settings that define the appearance of the editor's context menu.

Namespace: DevExpress.Web.ASPxHtmlEditor

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


public HtmlEditorMenuStyles StylesContextMenu { get; }
Public ReadOnly Property StylesContextMenu As HtmlEditorMenuStyles

Property Value

Type Description

A HtmlEditorMenuStyles object that contains style settings.


This property is not in effect if the ASPxHtmlEditorSettings.AllowContextMenu property is set to Default value.

The following code snippets demonstrate how to use the StylesContextMenu property.

ASPxHtmlEditor1.StylesContextMenu.Item.Font.Italic = true;
ASPxHtmlEditor1.StylesContextMenu.Item.ForeColor = "#336699";
ASPxHtmlEditor1.StylesContextMenu.Item.HoverStyle.BackColor = "#CCFFFF";
ASPxHtmlEditor1.StylesContextMenu.Item.HoverStyle.Border.BorderColor = "#336699";
See Also