Skip to main content

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

IToolbar Interface

In This Article

The built-in toolbar for the Rich Text Editor.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public interface IToolbar

#Remarks

When you set the BarMode property to BarMode.Toolbar, the Rich Text Editor displays its command bar as a toolbar.

The IToolbar interface defines the toolbar. Use this interface in the CustomizeToolbar event.

The interface’s Groups property allows you to access the toolbar’s group collection. You can obtain an individual group by its name or index.

Razor
<DxRichEdit BarMode=BarMode.Toolbar CustomizeToolbar=OnCustomizeToolbar />

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        // Returns the first group
        IBarGroup firstGroup = toolbar.Groups[0];
        // Returns the Table group
        IBarGroup tableGroup = toolbar.Groups[RichEditToolbarGroupNames.Table];
    }
}

Run Demo: Toolbar Customization

See Also