Skip to main content
All docs
V25.2
  • RichEditToolbarGroupNames.File Property

    Gets the name of the toolbar’s File group.

    Namespace: DevExpress.Blazor.RichEdit

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

    NuGet Package: DevExpress.Blazor.RichEdit

    Declaration

    public static string File { get; }

    Property Value

    Type Description
    String

    The “Field” string.

    Remarks

    The Rich Text Editor’s toolbar consists of multiple groups. The File group includes the following items:

    New Document
    The button creates a document.
    Open Document
    The button opens a document.
    Print Document
    The button prints an open document.
    Save Document
    The button saves an open document.

    File Group

    Use the File property to perform the following operations:

    The following code snippet removes the Print Document button from the toolbar.

    <DxRichEdit CustomizeToolbar="onCustomizeToolbar"
                BarMode=BarMode.Toolbar/>
    
    @code {
        void onCustomizeToolbar(IToolbar toolbar) {
            string groupName = RichEditToolbarGroupNames.File;
            string itemName = RichEditBarItemNames.PrintDocument;
            toolbar.Groups[groupName].Items.Remove(itemName);
        }
    }
    
    See Also