FloatingObjectsFormatTabItemId Enum
Lists commands contained in the Floating Objects Format tab.
#Declaration
export enum FloatingObjectsFormatTabItemId {
WrapTextMenu = 450,
PositionMenu = 451,
BringForwardMenu = 452,
SendBackwardMenu = 453,
ChangeFloatingObjectFillColor = 343,
ChangeFloatingObjectOutlineColor = 344,
ChangeFloatingObjectOutlineWidth = 345,
SetFloatingObjectInlineTextWrapType = 374,
SetFloatingObjectSquareTextWrapType = 346,
SetFloatingObjectTightTextWrapType = 347,
SetFloatingObjectThroughTextWrapType = 348,
SetFloatingObjectTopAndBottomTextWrapType = 349,
SetFloatingObjectBehindTextWrapType = 350,
SetFloatingObjectInFrontOfTextWrapType = 351,
SetFloatingObjectTopLeftAlignment = 352,
SetFloatingObjectTopCenterAlignment = 353,
SetFloatingObjectTopRightAlignment = 354,
SetFloatingObjectMiddleLeftAlignment = 355,
SetFloatingObjectMiddleCenterAlignment = 356,
SetFloatingObjectMiddleRightAlignment = 357,
SetFloatingObjectBottomLeftAlignment = 358,
SetFloatingObjectBottomCenterAlignment = 359,
SetFloatingObjectBottomRightAlignment = 360,
FloatingObjectBringForward = 361,
FloatingObjectBringToFront = 362,
FloatingObjectBringInFrontOfText = 363,
FloatingObjectSendBackward = 364,
FloatingObjectSendToBack = 365,
FloatingObjectSendBehindText = 366
}
#Members
Name | Description |
---|---|
Bring
|
Identifies the Bring Forward menu. |
Change
|
Identifies the Change Floating Object Fill Color command. |
Change
|
Identifies the Change Floating Object Outline Color command. |
Change
|
Identifies the Change Floating Object Outline Width command. |
Floating
|
Identifies the Floating Object Bring Forward command. |
Floating
|
Identifies the Floating Object Bring In Front Of Text command. |
Floating
|
Identifies the Floating Object Bring To Front command. |
Floating
|
Identifies the Floating Object Send Backward command. |
Floating
|
Identifies the Floating Object Send Behind Text command. |
Floating
|
Identifies the Floating Object Send To Back command. |
Position
|
Identifies the Position menu. |
Send
|
Identifies the Send Backward menu. |
Set
|
Identifies the Set Floating Object Behind Text Wrap Type command. |
Set
|
Identifies the Set Floating Object Bottom Center Alignment command. |
Set
|
Identifies the Set Floating Object Bottom Left Alignment command. |
Set
|
Identifies the Set Floating Object Bottom Right Alignment command. |
Set
|
Identifies the Set Floating Object In Front Of Text Wrap Type command. |
Set
|
Identifies the Set Floating Object Inline Text Wrap Type command. |
Set
|
Identifies the Set Floating Object Middle Center Alignment command. |
Set
|
Identifies the Set Floating Object Middle Left Alignment command. |
Set
|
Identifies the Set Floating Object Middle Right Alignment command. |
Set
|
Identifies the Set Floating Object Square Text Wrap Type command. |
Set
|
Identifies the Set Floating Object Through Text Wrap Type command. |
Set
|
Identifies the Set Floating Object Tight Text Wrap Type command. |
Set
|
Identifies the Set Floating Object Top And Bottom Text Wrap Type command. |
Set
|
Identifies the Set Floating Object Top Center Alignment command. |
Set
|
Identifies the Set Floating Object Top Left Alignment command. |
Set
|
Identifies the Set Floating Object Top Right Alignment command. |
Wrap
|
Identifies the Wrap Text menu. |
#Remarks
The FloatingObjectsFormatTabItemId
enum contains identifiers of the Format 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 Format tab.
The example below moves the WrapTextMenu item to the first position in the Format tab:
var options = DevExpress.RichEdit.createOptions();
var tab = options.ribbon.getTab(DevExpress.RichEdit.RibbonTabType.FloatingObjectsFormat);
var ribbonItem = tab.getItem(DevExpress.RichEdit.FloatingObjectsFormatTabItemId.WrapTextMenu);
tab.removeItem(ribbonItem);
tab.insertItem(ribbonItem, 0);
var richContainer = document.getElementById("rich-container");
const richEdit = DevExpress.RichEdit.create(richContainer, options);
To execute the Format tab’s command, pass the FloatingObjectsFormatTabCommandId‘s field to the executeCommand(commandId) method.