blazor-devexpress-dot-blazor-dot-richedit-dot-richedittoolbargroupnames.md
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
public static string File { get; }
| Type | Description |
|---|---|
| String |
The “Field” string.
|
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.
<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