Skip to main content

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.DownloadMenu Property

Gets the Download Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
public static string DownloadMenu { get; }

#Property Value

Type Description
String

The “DownloadMenu” string.

#Remarks

Use this property to perform the following operations:

The Download Menu item is a drop-down menu in the Common group. This menu contains the following items:

Download Docx
The button allows users to download a document in DOCX format.
Download Rtf
The button allows users to download a document in RTF format.
Download Txt
The button allows users to download a document in TXT format.
Download Html
The button allows users to download a document in HTML format.

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

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.DownloadRtf);
            downloadDropDown.Items.Remove(RichEditBarItemNames.DownloadTxt);
            downloadDropDown.Items.Remove(RichEditBarItemNames.DownloadHtml);
        }
    }
}
See Also