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.PaperSizeB5 Property

Gets the Paper Size B5 item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
public static string PaperSizeB5 { get; }

#Property Value

Type Description
String

The “PaperSizeB5” string.

#Remarks

Use this property to perform the following operations with the Paper Size B5 item:

The Paper Size B5 item is a button in the Paper Size Menu. This button allows users to set the paper size of the selected sections to B5.

The following code snippet removes the Paper Size B5 item from the Paper Size Menu:

Razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem pageSizeMenu = ribbon.Tabs[RichEditRibbonTabNames.PageLayout].Groups[RichEditRibbonGroupNames.PageSetup].Items[RichEditBarItemNames.PaperSizeMenu];
        if (pageSizeMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown pageSizeDropDown = (IBarDropDown)pageSizeMenu;
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.PaperSizeA4);
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.PaperSizeA5);
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.PaperSizeA6);
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.PaperSizeB5);
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.PaperSizeExecutive);
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.PaperSizeFolio);
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.PaperSizeLegal);
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.PaperSizeLetter);
            pageSizeDropDown.Items.Remove(RichEditBarItemNames.ShowPagePaperSetupDialog);
        }
    }
}
See Also