Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditBarItemNames.DownloadHtml Property

Gets the Download Html item’s name.

Namespace: DevExpress.Blazor.RichEdit

Assembly: DevExpress.Blazor.RichEdit.v24.2.dll

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
public static string DownloadHtml { get; }

#Property Value

Type Description
String

The “DownloadHtml” string.

#Remarks

Use this property to perform the following operations with the Download Html item:

The Download Html item is a button in the Download Menu. This button allows users to download an open document in HTML format.

The following code snippet removes the Download Html item from the Download Menu:

Razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem downloadMenu = ribbon.Tabs[RichEditRibbonTabNames.File].Groups[RichEditRibbonGroupNames.FileCommon].Items[RichEditBarItemNames.DownloadMenu];
        if (downloadMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown downloadDropDown = (IBarDropDown)downloadMenu;
            downloadDropDown.Items.Remove(RichEditBarItemNames.DownloadDocx);
            downloadDropDown.Items.Remove(RichEditBarItemNames.DownloadHtml);
            downloadDropDown.Items.Remove(RichEditBarItemNames.DownloadRtf);
            downloadDropDown.Items.Remove(RichEditBarItemNames.DownloadTxt);
        }
    }
}
See Also