Back to Devexpress

RichEditBarItemNames.InsertSectionBreakEvenPage Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-5a16c5a7.md

latest3.0 KB
Original Source

RichEditBarItemNames.InsertSectionBreakEvenPage Property

Gets the Insert Section Break Even Page item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string InsertSectionBreakEvenPage { get; }

Property Value

TypeDescription
String

The “InsertSectionBreakEvenPage” string.

|

Remarks

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

The Insert Section Break Even Page item is a button in the Page Breaks Menu. This button allows to insert a section break and start a new section on the next even page.

The following code snippet removes the Insert Section Break Even Page 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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace