Skip to main content

RichEditBarItemNames.LineSpacingMenu Property

Gets the Line Spacing Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string LineSpacingMenu { get; }

Property Value

Type Description
String

The “LineSpacingMenu” string.

Remarks

Use this property to perform the following operations:

The Line Spacing Menu item is a drop-down menu in the Paragraph group. This menu contains the following items:

Add Spacing After Paragraph
The button allows users to add a space after the selected paragraphs.
Add Spacing Before Paragraph
The button allows users to add a space before the selected paragraphs.
Line Spacing Double
The button allows users to set double line spacing between the selected paragraphs.
Line Spacing Sesquialteral
The button allows users to set sesquialteral line spacing between the selected paragraphs.
Line Spacing Single
The button allows users to set single line spacing between the selected paragraphs.
Remove Spacing After Paragraph
The button allows users to remove a space after the selected paragraphs.
Remove Spacing Before Paragraph
The button allows users to remove a space before the selected paragraphs.

The following code snippet removes items from the Line Spacing Menu item:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem lineSpacingMenu = ribbon.Tabs[RichEditRibbonTabNames.Home].Groups[RichEditRibbonGroupNames.HomeParagraph].Items[RichEditBarItemNames.LineSpacingMenu];
        if (lineSpacingMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown lineSpacingDropDown = (IBarDropDown)lineSpacingMenu;
            lineSpacingDropDown.Items.Remove(RichEditBarItemNames.AddSpacingAfterParagraph);
            lineSpacingDropDown.Items.Remove(RichEditBarItemNames.AddSpacingBeforeParagraph);
            lineSpacingDropDown.Items.Remove(RichEditBarItemNames.LineSpacingDouble);
            lineSpacingDropDown.Items.Remove(RichEditBarItemNames.LineSpacingSesquialteral);
            lineSpacingDropDown.Items.Remove(RichEditBarItemNames.LineSpacingSingle);
            lineSpacingDropDown.Items.Remove(RichEditBarItemNames.RemoveSpacingAfterParagraph);
            lineSpacingDropDown.Items.Remove(RichEditBarItemNames.RemoveSpacingBeforeParagraph);
        }
    }
}
See Also