Back to Devexpress

RichEditBarItemNames.PageOrientationLandscape Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-9d08bbb3.md

latest2.8 KB
Original Source

RichEditBarItemNames.PageOrientationLandscape Property

Gets the Page Orientation Landscape item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string PageOrientationLandscape { get; }

Property Value

TypeDescription
String

The “PageOrientationLandscape” string.

|

Remarks

Use this property to perform the following operations with the Page Orientation Landscape item:

The Page Orientation Landscape item is a button in the Page Orientation Menu. This button allows users to change the page orientation of the selected sections to landscape.

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

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