Back to Devexpress

IToolbar.Groups Property

blazor-devexpress-dot-blazor-dot-office-dot-itoolbar.md

latest1.5 KB
Original Source

IToolbar.Groups Property

Returns a group collection for the toolbar.

Namespace : DevExpress.Blazor.Office

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
BarGroupCollection Groups { get; }

Property Value

TypeDescription
BarGroupCollection

The group collection.

|

Remarks

Use the Groups property 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

IToolbar Interface

IToolbar Members

DevExpress.Blazor.Office Namespace