Skip to main content

RichEditBarItemNames.SwitchToPrintLayout Property

Gets the Switch to Print Layout item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string SwitchToPrintLayout { get; }

Property Value

Type Description
String

The “SwitchToPrintLayout” string.

Remarks

Use this property to perform the following operations:

The Switch to Print Layout item is a checkable button in the Document Views group. This button sets the Rich Text Editor’s view mode to Print Layout and displays document pages with applied format settings.

The example below demonstrates how to remove the Switch to Print Layout item from the ribbon:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        string tabName = RichEditRibbonTabNames.View;
        string groupName = RichEditRibbonGroupNames.ViewDocumentViews;
        string itemName = RichEditBarItemNames.SwitchToPrintLayout;
        ribbon.Tabs[tabName].Groups[groupName].Items.Remove(itemName);
    }
}
See Also