RichEditBarItemNames.PositionTopRight Property
Gets the Position Top Right item’s name.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.2.dll
NuGet Package: DevExpress.Blazor.RichEdit
Declaration
public static string PositionTopRight { get; }
Property Value
Type | Description |
---|---|
String | The “PositionTopRight” string. |
Remarks
Use this property to perform the following operations with the Position Top Right item:
- Access the item’s properties
- Add the item to a group
- Remove the item from a group
- Remove the item from the Position Menu
The Position Top Right item is a button in the Position Menu. The button aligns the selected floating image or text box to the top right of the page. The Rich Text Editor disables this button when an inline image is selected.
The following code snippet removes the Position Top Right item from the Position Menu:
<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