RichEditBarItemNames.MarginsWide Property
Gets the Margins Wide item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static string MarginsWide { get; }
Property Value
Type | Description |
---|---|
String | The “MarginsWide” string. |
Remarks
Use this property to perform the following operations with the Margins Wide item:
- Access the item’s properties
- Add the item to a group
- Remove the item from a group
- Remove the item from the Page Margins Menu
The Margins Wide item is a button in the Page Margins Menu. This button allows users to set the top and bottom margins of the selected sections to 1 inch, the left and right margins to 2 inches.
The following code snippet removes the Margins Wide 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