blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-411c28d2.md
Gets the Page Breaks Menu item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string PageBreaksMenu { get; }
| Type | Description |
|---|---|
| String |
The “PageBreaksMenu” string.
|
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:
<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