Back to Devexpress

RichEditBarItemNames.ParagraphBodyTextLevel Property

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

latest3.4 KB
Original Source

RichEditBarItemNames.ParagraphBodyTextLevel Property

Gets the Paragraph Body Text Level item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string ParagraphBodyTextLevel { get; }

Property Value

TypeDescription
String

The “ParagraphBodyTextLevel” string.

|

Remarks

Use this property to perform the following operations with the Paragraph Body Text Level item:

The Paragraph Body Text Level item is a button in the Add Paragraphs to Table of Contents Menu item.

The following code snippet removes the Paragraph Body Text Level item from the Add Paragraphs to Table of Contents Menu:

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem headingsMenu = ribbon.Tabs[RichEditRibbonTabNames.References].Groups[RichEditRibbonGroupNames.ReferencesTableOfContents].Items[RichEditBarItemNames.AddParagraphsToTableOfContentsMenu];
        if (headingsMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown headingsDropDown = (IBarDropDown)headingsMenu;
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphBodyTextLevel);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading1Level);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading2Level);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading3Level);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading4Level);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading5Level);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading6Level);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading7Level);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading8Level);
            headingsDropDown.Items.Remove(RichEditBarItemNames.ParagraphHeading9Level);
        }
    }
}

See Also

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace