Back to Devexpress

IRibbonTab.Groups Property

blazor-devexpress-dot-blazor-dot-office-dot-iribbontab-c4042cc4.md

latest1.6 KB
Original Source

IRibbonTab.Groups Property

Returns a group collection for the ribbon tab.

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

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 additional information and an example.

See Also

IRibbonTab Interface

IRibbonTab Members

DevExpress.Blazor.Office Namespace