blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-b3d3aed7.md
Gets the Indent Menu item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string IndentMenu { get; }
| Type | Description |
|---|---|
| String |
The “IndentMenu” string.
|
Use this property to perform the following operations:
The Indent Menu item is a drop-down menu in the Paragraph group. This menu contains the following items:
Decrease IndentThe button allows users to decrease the indent of the selected paragraphs.Increase IndentThe button allows users to increase the indent of the selected paragraphs.
When a user clicks the Indent Menu , the Rich Text Editor increases the indent of the selected paragraphs. Use the drop down‘s Click property to change this behavior.
The following code snippet removes items from the Indent Menu item:
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
@code {
void onCustomizeRibbon(IRibbon ribbon) {
IBarItem indentMenu = ribbon.Tabs[RichEditRibbonTabNames.Home].Groups[RichEditRibbonGroupNames.HomeParagraph].Items[RichEditBarItemNames.IndentMenu];
if (indentMenu.Type == BarItemTypes.DropDown) {
IBarDropDown indentDropDown = (IBarDropDown)indentMenu;
indentDropDown.Items.Remove(RichEditBarItemNames.DecreaseIndent);
indentDropDown.Items.Remove(RichEditBarItemNames.IncreaseIndent);
}
}
}
See Also