Skip to main content

FileTabItemId Enum

Lists commands contained in the File tab.

Declaration

export enum FileTabItemId {
    CreateNewDocument = 412,
    OpenDocument = 410,
    ExportDocument = 413,
    Download = 414,
    DownloadDocx = 418,
    DownloadRtf = 419,
    DownloadTxt = 420,
    PrintDocument = 416
}

Members

Name Description
CreateNewDocument

Identifies the Create New Document command.

Download

Identifies the Download command.

DownloadDocx

Identifies the Download DOCX command.

DownloadRtf

Identifies the Download RTF command.

DownloadTxt

Identifies the Download TXT command.

ExportDocument

Identifies the Save Document command.

OpenDocument

Identifies the Open Document command.

PrintDocument

Identifies the Print Document command.

Remarks

The FileTabItemId enum contains identifiers of the File 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 File tab.

The example below moves the PrintDocument item to the first position in the File tab:

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

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

See Also