blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-dot-papersizea4.md
Gets the Paper Size A4 item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string PaperSizeA4 { get; }
| Type | Description |
|---|---|
| String |
The “PaperSizeA4” string.
|
Use this property to perform the following operations with the Paper Size A4 item:
The Paper Size A4 item is a button in the Paper Size Menu. This button allows users to set the paper size of the selected sections to A4.
The following code snippet removes the Paper Size A4 item from the Paper Size Menu:
<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