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
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:
<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