Back to Devexpress

RichEditBarItemNames.LineSpacingSingle Property

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

latest3.1 KB
Original Source

RichEditBarItemNames.LineSpacingSingle Property

Gets the Line Spacing Single item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string LineSpacingSingle { get; }

Property Value

TypeDescription
String

The “LineSpacingSingle” string.

|

Remarks

Use this property to perform the following operations with the Line Spacing Single item:

The Line Spacing Single item is a button in the Line Spacing Menu. This button allows users to set single line spacing between the selected paragraphs.

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

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