Back to Devexpress

RichEditBarItemNames.PageBreaksMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-411c28d2.md

latest3.7 KB
Original Source

RichEditBarItemNames.PageBreaksMenu Property

Gets the Page Breaks Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string PageBreaksMenu { get; }

Property Value

TypeDescription
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 BreakThe button inserts a column break.Insert Page BreakThe button inserts a page break.Insert Section Break Even PageThe button inserts a section break and starts a new section on the next even page.Insert Section Break Next PageThe button inserts a section break and starts a new section on the next page.Insert Section Break Odd PageThe 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:

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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace