blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-7c0079ca.md
Gets the Download Menu item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string DownloadMenu { get; }
| Type | Description |
|---|---|
| String |
The “DownloadMenu” string.
|
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:
<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