RichEditBarItemNames.DownloadDocx Property
Gets the Download Docx item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v23.2.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static string DownloadDocx { get; }
Property Value
Type | Description |
---|---|
String | The “DownloadDocx” string. |
Remarks
Use this property to perform the following operations with the Download Docx item:
- Access the item’s properties
- Add the item to a group
- Remove the item from a group
- Remove the item from the Download Menu
The Download Docx item is a button in the Download Menu. This button allows users to download an open document in DOCX format.
The example below demonstrates how to remove the Download Docx item from the Download Menu:
<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