RichEditBarItemNames.PageOrientationPortrait Property
Gets the Page Orientation Portrait item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static string PageOrientationPortrait { get; }
Property Value
Type | Description |
---|---|
String | The “PageOrientationPortrait” string. |
Remarks
Use this property to perform the following operations with the Page Orientation Portrait item:
- Access the item’s properties
- Add the item to a group
- Remove the item from a group
- Remove the item from the Page Orientation Menu
The Page Orientation Portrait item is a button in the Page Orientation Menu. This button allows users to change the page orientation of the selected sections to portrait.
The following code snippet removes the Page Orientation Portrait item from the Page Orientation Menu:
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
@code {
void onCustomizeRibbon(IRibbon ribbon) {
IBarItem pageOrientationMenu = ribbon.Tabs[RichEditRibbonTabNames.PageLayout].Groups[RichEditRibbonGroupNames.PageSetup].Items[RichEditBarItemNames.PageOrientationMenu];
if (pageOrientationMenu.Type == BarItemTypes.DropDown) {
IBarDropDown pageOrientationDropDown = (IBarDropDown)pageOrientationMenu;
pageOrientationDropDown.Items.Remove(RichEditBarItemNames.PageOrientationLandscape);
pageOrientationDropDown.Items.Remove(RichEditBarItemNames.PageOrientationPortrait);
}
}
}
See Also