Back to Devexpress

RichEditBarItemNames.TotalRow Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-f411bde6.md

latest2.9 KB
Original Source

RichEditBarItemNames.TotalRow Property

Gets the Total Row item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string TotalRow { get; }

Property Value

TypeDescription
String

The “TotalRow” string.

|

Remarks

Use this property to perform the following operations with the Total Row item:

The Total Row item is a checkable button in the Table Options Menu. This button displays or removes special formatting from the last row of the selected table.

The following code snippet removes the Total Row item from the Table Options Menu:

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem tableOptionsMenu = ribbon.Tabs[RichEditRibbonTabNames.TableDesign].Groups[RichEditRibbonGroupNames.DesignTableStyleOptions].Items[RichEditBarItemNames.TableOptionsMenu];
        if (tableOptionsMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown tableOptionsDropDown = (IBarDropDown)tableOptionsMenu;
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.BandedColumns);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.BandedRows);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.FirstColumn);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.HeaderRow);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.LastColumn);
            tableOptionsDropDown.Items.Remove(RichEditBarItemNames.TotalRow);
        }
    }
}

See Also

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace