Back to Devexpress

RichEditBarItemNames.DownloadRtf Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-85baefc0.md

latest2.7 KB
Original Source

RichEditBarItemNames.DownloadRtf Property

Gets the Download Rtf item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string DownloadRtf { get; }

Property Value

TypeDescription
String

The “DownloadRtf” string.

|

Remarks

Use this property to perform the following operations with the Download Rtf item:

The Download Rtf item is a button in the Download Menu. This button allows users to download an open document in Rtf format.

The following code snippet removes the Download Rtf item from the Download Menu:

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