Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditBarItemNames.InsertPageBreak Property

Gets the Insert Page Break item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
public static string InsertPageBreak { get; }

#Property Value

Type Description
String

The “InsertPageBreak” string.

#Remarks

Use this property to perform the following operations with the Insert Page Break item:

The Insert Page Break item is a button in the Page Breaks Menu. This button allows users to insert a page break.

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

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