ReferencesTabItemId Enum
Lists commands contained in the References tab.
Declaration
export enum ReferencesTabItemId {
AddTextMenu = 439,
InsertCaptionMenu = 440,
InsertTableOfFiguresMenu = 441,
InsertTableOfContents = 377,
SetParagraphBodyTextLevel = 385,
SetParagraphHeading1Level = 386,
SetParagraphHeading2Level = 387,
SetParagraphHeading3Level = 388,
SetParagraphHeading4Level = 389,
SetParagraphHeading5Level = 390,
SetParagraphHeading6Level = 391,
SetParagraphHeading7Level = 392,
SetParagraphHeading8Level = 393,
SetParagraphHeading9Level = 394,
CreateFigureCaptionField = 382,
CreateTableCaptionField = 383,
CreateEquationCaptionField = 381,
CreateTableOfFiguresField = 379,
CreateTableOfTablesField = 380,
CreateTableOfEquationsField = 378,
UpdateTableOfContents = 384
}
Members
Name | Description |
---|---|
AddTextMenu
|
Identifies the Add Text menu. |
CreateEquationCaptionField
|
Identifies the Create Equation Caption Field command. |
CreateFigureCaptionField
|
Identifies the Create Figure Caption Field command. |
CreateTableCaptionField
|
Identifies the Create Table Caption Field command. |
CreateTableOfEquationsField
|
Identifies the Create Table Of Equations Field command. |
CreateTableOfFiguresField
|
Identifies the Create Table Of Figures Field command. |
CreateTableOfTablesField
|
Identifies the Create Table Of Tables Field command. |
InsertCaptionMenu
|
Identifies the Insert Caption menu. |
InsertTableOfContents
|
Identifies the Insert Table Of Contents command. |
InsertTableOfFiguresMenu
|
Identifies the Insert Table Of Figures menu. |
SetParagraphBodyTextLevel
|
Identifies the Set Paragraph Body Text Level command. |
SetParagraphHeading1Level
|
Identifies the Set Paragraph Heading 1 Level command. |
SetParagraphHeading2Level
|
Identifies the Set Paragraph Heading 2 Level command. |
SetParagraphHeading3Level
|
Identifies the Set Paragraph Heading 3 Level command. |
SetParagraphHeading4Level
|
Identifies the Set Paragraph Heading 4 Level command. |
SetParagraphHeading5Level
|
Identifies the Set Paragraph Heading 5 Level command. |
SetParagraphHeading6Level
|
Identifies the Set Paragraph Heading 6 Level command. |
SetParagraphHeading7Level
|
Identifies the Set Paragraph Heading 7 Level command. |
SetParagraphHeading8Level
|
Identifies the Set Paragraph Heading 8 Level command. |
SetParagraphHeading9Level
|
Identifies the Set Paragraph Heading 9 Level command. |
UpdateTableOfContents
|
Identifies the Update Table Of Contents command. |
Remarks
The ReferencesTabItemId
enum contains identifiers of the References 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 References tab.
The example below moves the UpdateTableOfContents item to the first position in the References tab:
var options = DevExpress.RichEdit.createOptions();
var tab = options.ribbon.getTab(DevExpress.RichEdit.RibbonTabType.References);
var ribbonItem = tab.getItem(DevExpress.RichEdit.ReferencesTabItemId.UpdateTableOfContents);
tab.removeItem(ribbonItem);
tab.insertItem(ribbonItem, 0);
var richContainer = document.getElementById("rich-container");
const richEdit = DevExpress.RichEdit.create(richContainer, options);
To execute the References tab’s command, pass the ReferencesTabCommandId‘s field to the executeCommand(commandId) method.