Back to Devexpress

RichEditRibbonGroupNames.FileCommon Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditribbongroupnames-9b9d74c1.md

latest3.5 KB
Original Source

RichEditRibbonGroupNames.FileCommon Property

Gets the name of the File tab’s Common group.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string FileCommon { get; }

Property Value

TypeDescription
String

The “FileCommon” string.

|

Remarks

The Common group is in the File tab and includes the following items:

Download MenuA drop-down menu that allows users to download a document in DOCX, RTF, or TXT format.New DocumentA button that allows users to create a document.Open DocumentA button that allows users to open a document.Print DocumentA button that allows users to print an open document.Save Document

A button that allows users to save an open document. This button is visible only if you specify the DocumentContentChanged property or use the @bind attribute to bind the DocumentContent property to data.

razor
<DxRichEdit @bind-DocumentContent="@DocumentContent" />

@code { 
    byte[] DocumentContent;
    // ...
}

Use the Common property to perform the following operations:

The following code snippet removes an item from this group.

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        string tabName = RichEditRibbonTabNames.File;
        string groupName = RichEditRibbonGroupNames.FileCommon;
        string itemName = RichEditBarItemNames.PrintDocument;
        ribbon.Tabs[tabName].Groups[groupName].Items.Remove(itemName);
    }
}

See Also

RichEditRibbonGroupNames Class

RichEditRibbonGroupNames Members

DevExpress.Blazor.RichEdit Namespace