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

IRibbonTab.Groups Property

Returns a group collection for the ribbon tab.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
BarGroupCollection Groups { get; }

#Property Value

Type Description
BarGroupCollection

The group collection.

#Remarks

The Groups property allows you to access a ribbon tab’s group collection. You can obtain an individual group by its name or index.

Razor
<DxRichEdit CustomizeRibbon=OnCustomizeRibbon @bind-Selection=@selection />

@code {
    Selection selection;

    void OnCustomizeRibbon(IRibbon ribbon) {
        BarGroupCollection groups = ribbon.Tabs[RichEditRibbonTabNames.Insert].Groups;
        // Returns the first group
        IBarGroup firstGroup = groups[0];
        // Returns the Header and Footer group
        IBarGroup secondGroup = groups[RichEditRibbonGroupNames.InsertHeaderAndFooter];
    }
}

Refer to the IRibbonTab interface description for more information and an example.

See Also