Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditBarItemNames.PageOrientationMenu Property

Gets the Page Orientation Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

Assembly: DevExpress.Blazor.RichEdit.v24.2.dll

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
public static string PageOrientationMenu { get; }

#Property Value

Type Description
String

The “PageOrientationMenu” string.

#Remarks

Use this property to perform the following operations:

The Page Orientation Menu item is a drop-down menu in the Page Setup group. This menu contains the following items:

Page Orientation Landscape
The button changes the page orientation of the selected sections to landscape.
Page Orientation Portrait
The button changes the page orientation of the selected sections to portrait.

The following code snippet removes items from the Page Orientation Menu item:

Razor
<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