Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HtmlEditorToolbarItemNames Class

Contains names of built-in toolbar items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
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

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