Back to Devexpress

RichEditBarItemNames.LineSpacingMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-de05a003.md

latest4.3 KB
Original Source

RichEditBarItemNames.LineSpacingMenu Property

Gets the Line Spacing Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string LineSpacingMenu { get; }

Property Value

TypeDescription
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 ParagraphThe button allows users to add a space after the selected paragraphs.Add Spacing Before ParagraphThe button allows users to add a space before the selected paragraphs.Line Spacing DoubleThe button allows users to set double line spacing between the selected paragraphs.Line Spacing SesquialteralThe button allows users to set sesquialteral line spacing between the selected paragraphs.Line Spacing SingleThe button allows users to set single line spacing between the selected paragraphs.Remove Spacing After ParagraphThe button allows users to remove a space after the selected paragraphs.Remove Spacing Before ParagraphThe button allows users to remove a space before the selected paragraphs.

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

razor
<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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace