IToolbar.Groups Property
In This Article
Returns a group collection for the toolbar.
Namespace: DevExpress.Blazor.Office
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
BarGroupCollection Groups { get; }
#Property Value
Type | Description |
---|---|
Bar |
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];
}
}
See Also