PageLayoutTabItemId Enum
Lists commands contained in the Page Layout tab.
#Declaration
export enum PageLayoutTabItemId {
MarginsMenu = 434,
OrientationMenu = 435,
SizeMenu = 436,
ColumnsMenu = 437,
BreaksMenu = 438,
SetNormalSectionPageMargins = 66,
SetNarrowSectionPageMargins = 67,
SetModerateSectionPageMargins = 68,
SetWideSectionPageMargins = 69,
ShowMarginsPageSetupDialog = 70,
SetPortraitPageOrientation = 71,
SetLandscapePageOrientation = 72,
SetSectionLetterPaperSize = 162,
SetSectionLegalPaperSize = 99,
SetSectionFolioPaperSize = 100,
SetSectionA4PaperSize = 101,
SetSectionB5PaperSize = 104,
SetSectionExecutivePaperSize = 105,
SetSectionA5PaperSize = 102,
SetSectionA6PaperSize = 103,
ShowPaperPageSetupDialog = 73,
SetSectionOneColumn = 74,
SetSectionTwoColumns = 75,
SetSectionThreeColumns = 76,
InsertPageBreak = 54,
InsertColumnBreak = 79,
InsertSectionBreakNextPage = 80,
InsertSectionBreakEvenPage = 81,
InsertSectionBreakOddPage = 82,
ChangePageColor = 90
}
#Members
Name | Description |
---|---|
Breaks
|
Identifies the Breaks menu. |
Change
|
Identifies the Change Page Color command. |
Columns
|
Identifies the Columns menu. |
Insert
|
Identifies the Insert Column Break command. |
Insert
|
Identifies the Insert Page Break command. |
Insert
|
Identifies the Insert Section Break Even Page command. |
Insert
|
Identifies the Insert Section Break Next Page command. |
Insert
|
Identifies the Insert Section Break Odd Page command. |
Margins
|
Identifies the Margins menu. |
Orientation
|
Identifies the Orientation menu. |
Set
|
Identifies the Set Landscape Page Orientation command. |
Set
|
Identifies the Set Moderate Section Page Margins command. |
Set
|
Identifies the Set Narrow Section Page Margins command. |
Set
|
Identifies the Set Normal Section Page Margins command. |
Set
|
Identifies the Set Portrait Page Orientation command. |
Set
|
Identifies the Set Section A4 Paper Size command. |
Set
|
Identifies the Set Section A5 Paper Size command. |
Set
|
Identifies the Set Section A6 Paper Size command. |
Set
|
Identifies the Set Section B5 Paper Size command. |
Set
|
Identifies the Set Section Executive Paper Size command. |
Set
|
Identifies the Set Section Folio Paper Size command. |
Set
|
Identifies the Set Section Legal Paper Size command. |
Set
|
Identifies the Set Section Letter Paper Size command. |
Set
|
Identifies the Set Section One Column command. |
Set
|
Identifies the Set Section Three Columns command. |
Set
|
Identifies the Set Section Two Columns command. |
Set
|
Identifies the Set Wide Section Page Margins command. |
Show
|
Identifies the Show Margins Page Setup Dialog command. |
Show
|
Identifies the Show Paper Page Setup Dialog command. |
Size
|
Identifies the Size menu. |
#Remarks
The PageLayoutTabItemId
enum contains identifiers of the Page Layout 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 Page Layout tab.
The example below moves the ChangePageColor item to the first position in the Page Layout tab:
var options = DevExpress.RichEdit.createOptions();
var tab = options.ribbon.getTab(DevExpress.RichEdit.RibbonTabType.PageLayout);
var ribbonItem = tab.getItem(DevExpress.RichEdit.PageLayoutTabItemId.ChangePageColor);
tab.removeItem(ribbonItem);
tab.insertItem(ribbonItem, 0);
var richContainer = document.getElementById("rich-container");
const richEdit = DevExpress.RichEdit.create(richContainer, options);
To execute the Page Layout tab’s command, pass the PageLayoutTabCommandId‘s field to the executeCommand(commandId) method.