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 |
---|---|
Add
|
Identifies the Add Text menu. |
Create
|
Identifies the Create Equation Caption Field command. |
Create
|
Identifies the Create Figure Caption Field command. |
Create
|
Identifies the Create Table Caption Field command. |
Create
|
Identifies the Create Table Of Equations Field command. |
Create
|
Identifies the Create Table Of Figures Field command. |
Create
|
Identifies the Create Table Of Tables Field command. |
Insert
|
Identifies the Insert Caption menu. |
Insert
|
Identifies the Insert Table Of Contents command. |
Insert
|
Identifies the Insert Table Of Figures menu. |
Set
|
Identifies the Set Paragraph Body Text Level command. |
Set
|
Identifies the Set Paragraph Heading 1 Level command. |
Set
|
Identifies the Set Paragraph Heading 2 Level command. |
Set
|
Identifies the Set Paragraph Heading 3 Level command. |
Set
|
Identifies the Set Paragraph Heading 4 Level command. |
Set
|
Identifies the Set Paragraph Heading 5 Level command. |
Set
|
Identifies the Set Paragraph Heading 6 Level command. |
Set
|
Identifies the Set Paragraph Heading 7 Level command. |
Set
|
Identifies the Set Paragraph Heading 8 Level command. |
Set
|
Identifies the Set Paragraph Heading 9 Level command. |
Update
|
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.