RichEditBarItemNames.PositionMenu Property
Gets the Position Menu item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.1.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static string PositionMenu { get; }
Property Value
Type | Description |
---|---|
String | The “PositionMenu” string. |
Remarks
Use this property to perform the following operations:
The Position Menu item is a drop-down menu in the Arrange group. This menu contains the following items that allow users to change the position of the selected text box or floating image on the page:
The following code snippet removes items from the Position Menu item:
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
@code {
void onCustomizeRibbon(IRibbon ribbon) {
IBarItem positionMenu = ribbon.Tabs[RichEditRibbonTabNames.FloatingObjectFormat].Groups[RichEditRibbonGroupNames.FormatArrange].Items[RichEditBarItemNames.PositionMenu];
if (positionMenu.Type == BarItemTypes.DropDown) {
IBarDropDown positionDropDown = (IBarDropDown)positionMenu;
positionDropDown.Items.Remove(RichEditBarItemNames.PositionBottomCenter);
positionDropDown.Items.Remove(RichEditBarItemNames.PositionBottomLeft);
positionDropDown.Items.Remove(RichEditBarItemNames.PositionBottomRight);
positionDropDown.Items.Remove(RichEditBarItemNames.PositionMiddleCenter);
positionDropDown.Items.Remove(RichEditBarItemNames.PositionMiddleLeft);
positionDropDown.Items.Remove(RichEditBarItemNames.PositionMiddleRight);
positionDropDown.Items.Remove(RichEditBarItemNames.PositionTopCenter);
positionDropDown.Items.Remove(RichEditBarItemNames.PositionTopLeft);
positionDropDown.Items.Remove(RichEditBarItemNames.PositionTopRight);
}
}
}
See Also