Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public HtmlEditorMenuStyles StylesContextMenu { get; }

Property Value

Type Description
HtmlEditorMenuStyles

A HtmlEditorMenuStyles object that contains style settings.

Remarks

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