Back to Devexpress

ViewTabItemId Enum

aspnetcore-js-devexpress-dot-richedit-03e669f9.md

latest2.1 KB
Original Source

ViewTabItemId Enum

Lists commands contained in the View tab.

Declaration

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

Members

NameDescription
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:

javascript
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

RibbonItemId