blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-ea59a929.md
Gets the Show Page Margins Setup Dialog item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string ShowPageMarginsSetupDialog { get; }
| Type | Description |
|---|---|
| String |
The “ShowPageMarginsSetupDialog” string.
|
Use this property to perform the following operations with the Show Page Margins Setup Dialog item:
The Show Page Margins Setup Dialog item is a button in the Page Margins Menu. This button invokes the Page Setup dialog that allows users to change page settings of the selected sections.
The following code snippet removes the Show Page Margins Setup Dialog item from the Page Margins Menu:
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
@code {
void onCustomizeRibbon(IRibbon ribbon) {
IBarItem pageMarginsMenu = ribbon.Tabs[RichEditRibbonTabNames.PageLayout].Groups[RichEditRibbonGroupNames.PageSetup].Items[RichEditBarItemNames.PageMarginsMenu];
if (pageMarginsMenu.Type == BarItemTypes.DropDown) {
IBarDropDown pageMarginsDropDown = (IBarDropDown)pageMarginsMenu;
pageMarginsDropDown.Items.Remove(RichEditBarItemNames.MarginsModerate);
pageMarginsDropDown.Items.Remove(RichEditBarItemNames.MarginsNarrow);
pageMarginsDropDown.Items.Remove(RichEditBarItemNames.MarginsNormal);
pageMarginsDropDown.Items.Remove(RichEditBarItemNames.MarginsWide);
pageMarginsDropDown.Items.Remove(RichEditBarItemNames.ShowPageMarginsSetupDialog);
}
}
}
See Also