Skip to main content
All docs
V25.1
  • RichEditBarItemNames.IndentMenu Property

    Gets the Indent Menu item’s name.

    Namespace: DevExpress.Blazor.RichEdit

    Assembly: DevExpress.Blazor.RichEdit.v25.1.dll

    NuGet Package: DevExpress.Blazor.RichEdit

    Declaration

    public static string IndentMenu { get; }

    Property Value

    Type Description
    String

    The “IndentMenu” string.

    Remarks

    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 Indent
    The button allows users to decrease the indent of the selected paragraphs.
    Increase Indent
    The 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