Skip to main content
All docs
V26.1
  • ViewTabItemId Enum

    Lists commands contained in the View tab.

    Declaration

    export enum ViewTabItemId {
        SwitchToSimpleView = 405,
        SwitchToPrintLayout = 406,
        ToggleShowHorizontalRuler = 94,
        ToggleFullScreen = 98,
        ChangeZoomLevel = 460
    }

    Members

    Name Description
    ChangeZoomLevel

    Identifies the Change Zoom Level command.

    SwitchToPrintLayout

    Identifies the Switch To Print Layout command.

    SwitchToSimpleView

    Identifies the Switch To Simple View command.

    ToggleFullScreen

    Identifies the Toggle Full Screen command.

    ToggleShowHorizontalRuler

    Identifies the Toggle Show Horizontal Ruler command.

    Remarks

    The ViewTabItemId enum contains identifiers of the View tab’s ribbon items. Use an identifier to get the corresponding item and then insert it into a tab or remove the item from the View tab.

    The example below moves the ToggleFullScreen item to the first position in the View tab:

    var options = DevExpress.RichEdit.createOptions();
    var tab = options.ribbon.getTab(DevExpress.RichEdit.RibbonTabType.View);
    var ribbonItem = tab.getItem(DevExpress.RichEdit.ViewTabItemId.ToggleFullScreen);
    tab.removeItem(ribbonItem);
    tab.insertItem(ribbonItem, 0);
    var richContainer = document.getElementById("rich-container");
    const richEdit = DevExpress.RichEdit.create(richContainer, options);
    

    To execute the View tab’s command, pass the ViewTabCommandId‘s field to the executeCommand(commandId) method.

    See Also