aspnet-devexpress-dot-web-dot-aspxhtmleditor-dot-aspxhtmleditor-f6290e73.md
Provides access to the style settings that define the appearance of the editor’s context menu.
Namespace : DevExpress.Web.ASPxHtmlEditor
Assembly : DevExpress.Web.ASPxHtmlEditor.v25.2.dll
NuGet Package : DevExpress.Web
public HtmlEditorMenuStyles StylesContextMenu { get; }
Public ReadOnly Property StylesContextMenu As HtmlEditorMenuStyles
| Type | Description |
|---|---|
| HtmlEditorMenuStyles |
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";
<StylesContextMenu>
<Item Font-Italic="True" ForeColor="#336699">
<HoverStyle BackColor="#CCFFFF">
<Border BorderColor="#336699" />
</HoverStyle>
</Item>
</StylesContextMenu>
See Also