Back to Devexpress

RichEditBarItemNames.PageOrientationMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-51b984bd.md

latest2.8 KB
Original Source

RichEditBarItemNames.PageOrientationMenu Property

Gets the Page Orientation Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string PageOrientationMenu { get; }

Property Value

TypeDescription
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 LandscapeThe button changes the page orientation of the selected sections to landscape.Page Orientation PortraitThe 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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace