Back to Devexpress

ASPxHtmlEditor.StylesContextMenu Property

aspnet-devexpress-dot-web-dot-aspxhtmleditor-dot-aspxhtmleditor-f6290e73.md

latest2.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDescription
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.

csharp
ASPxHtmlEditor1.StylesContextMenu.Item.Font.Italic = true;
ASPxHtmlEditor1.StylesContextMenu.Item.ForeColor = "#336699";
ASPxHtmlEditor1.StylesContextMenu.Item.HoverStyle.BackColor = "#CCFFFF";
ASPxHtmlEditor1.StylesContextMenu.Item.HoverStyle.Border.BorderColor = "#336699";
aspx
<StylesContextMenu>
    <Item Font-Italic="True" ForeColor="#336699">
        <HoverStyle BackColor="#CCFFFF">
            <Border BorderColor="#336699" />
        </HoverStyle>
    </Item>
</StylesContextMenu>

See Also

Styles

StylesButton

StylesDialogForm

StylesEditors

StylesRoundPanel

StylesStatusBar

StylesToolbars

HTML Editor

ASPxHtmlEditor Class

ASPxHtmlEditor Members

DevExpress.Web.ASPxHtmlEditor Namespace