Back to Devexpress

RichEditBarItemNames.DownloadMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-7c0079ca.md

latest3.1 KB
Original Source

RichEditBarItemNames.DownloadMenu Property

Gets the Download Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string DownloadMenu { get; }

Property Value

TypeDescription
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 DocxThe button allows users to download a document in DOCX format.Download RtfThe button allows users to download a document in RTF format.Download TxtThe button allows users to download a document in TXT format.Download HtmlThe 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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace