Skip to main content
All docs
V24.2

HtmlEditorToolbarItemNames Class

Contains names of built-in toolbar items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public static class HtmlEditorToolbarItemNames

Remarks

Use HtmlEditorToolbarItemNames class properties to perform the following operations:

  • Access and customize built-in items.
  • Add built-in items to groups.
  • Remove built-in items from groups.

The following code snippet customizes the Html Editor‘s toolbar:

Html Editor - Toolbar Item Customization

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

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        IBarGroup fontGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.Font];
        fontGroup.Items.Remove(HtmlEditorToolbarItemNames.FontColor);
        fontGroup.Items.Remove(HtmlEditorToolbarItemNames.HighlightText);

        IBarGroup colorTextGroup = toolbar.Groups.AddCustomGroup(1);
        colorTextGroup.Items.Add(HtmlEditorToolbarItemNames.FontColor);
        colorTextGroup.Items.Add(HtmlEditorToolbarItemNames.HighlightText);
    }
}

Inheritance

Object
HtmlEditorToolbarItemNames
See Also