Skip to main content

RichEditBarItemNames.PageBreaksMenu Property

Gets the Page Breaks Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string PageBreaksMenu { get; }

Property Value

Type Description
String

The “PageBreaksMenu” string.

Remarks

Use this property to perform the following operations:

The Page Breaks Menu item is a drop-down menu in the Page Setup group. This menu contains the following items:

Insert Column Break
The button inserts a column break.
Insert Page Break
The button inserts a page break.
Insert Section Break Even Page
The button inserts a section break and starts a new section on the next even page.
Insert Section Break Next Page
The button inserts a section break and starts a new section on the next page.
Insert Section Break Odd Page
The button inserts a section break and starts a new section on the next odd page.

The following code snippet removes items from the Page Breaks Menu item:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem pageBreaksMenu = ribbon.Tabs[RichEditRibbonTabNames.PageLayout].Groups[RichEditRibbonGroupNames.PageSetup].Items[RichEditBarItemNames.PageBreaksMenu];
        if (pageBreaksMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown pageBreaksDropDown = (IBarDropDown)pageBreaksMenu;
            pageBreaksDropDown.Items.Remove(RichEditBarItemNames.InsertColumnBreak);
            pageBreaksDropDown.Items.Remove(RichEditBarItemNames.InsertPageBreak);
            pageBreaksDropDown.Items.Remove(RichEditBarItemNames.InsertSectionBreakEvenPage);
            pageBreaksDropDown.Items.Remove(RichEditBarItemNames.InsertSectionBreakNextPage);
            pageBreaksDropDown.Items.Remove(RichEditBarItemNames.InsertSectionBreakOddPage);
        }
    }
}
See Also