blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-668387f3.md
Gets the Page Orientation Portrait item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string PageOrientationPortrait { get; }
| Type | Description |
|---|---|
| String |
The “PageOrientationPortrait” string.
|
Use this property to perform the following operations with the Page Orientation Portrait item:
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