Back to Devexpress

RichEditToolbarGroupNames.File Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richedittoolbargroupnames.md

latest2.7 KB
Original Source

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

csharp
public static string File { get; }

Property Value

TypeDescription
String

The “Field” string.

|

Remarks

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

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

Use the File property to perform the following operations:

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

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

RichEditToolbarGroupNames Class

RichEditToolbarGroupNames Members

DevExpress.Blazor.RichEdit Namespace