Skip to main content

RichEditBarItemNames.DownloadMenu Property

Gets the Download Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

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.

The example below demonstrates how to remove items from the Download Menu item:

<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);
        }
    }
}
See Also