Back to Devexpress

HtmlEditorToolbarGroupNames.Paragraph Property

blazor-devexpress-dot-blazor-dot-htmleditortoolbargroupnames-36a77d2c.md

latest3.8 KB
Original Source

HtmlEditorToolbarGroupNames.Paragraph Property

Gets the name of the Paragraph group.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public static string Paragraph { get; }

Property Value

TypeDescription
String

The “Paragraph” string.

|

Remarks

The Paragraph group in the HtmlEditor‘s toolbar includes the following items:

Paragraph Alignment LeftThe checkable button allows users to align selected paragraphs with the left margin.Paragraph Alignment CenterThe checkable button allows users to center selected paragraphs on the page.Paragraph Alignment RightThe checkable button allows users to align selected paragraphs with the right margin.Paragraph Alignment JustifyThe checkable button allows users to align selected paragraphs with left and right margins.Bullet ListThe checkable button allows users to start a bullet list.Numbered ListThe checkable button allows users to start a numbered list.Increase IndentThe button allows users to increase the indent of selected paragraphs.Decrease IndentThe button allows users to decrease the indent of selected paragraphs.Paragraph StylesThe combo box allows users to change the style of selected paragraphs.

Use the Paragraph property to perform the following operations:

The following code snippet removes all items from the toolbar’s Paragraph group:

razor
<DxHtmlEditor Width="100%"
              Height="200px"
              CustomizeToolbar="@OnCustomizeToolbar"/>

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        IBarGroup paragraphGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.Paragraph];
        paragraphGroup.Items.Clear();
    }
}

See Also

HtmlEditorToolbarGroupNames Class

HtmlEditorToolbarGroupNames Members

DevExpress.Blazor Namespace