Back to Devexpress

IBarGroup.Items Property

blazor-devexpress-dot-blazor-dot-office-dot-ibargroup.md

latest2.0 KB
Original Source

IBarGroup.Items Property

Returns an item collection for the group.’

Namespace : DevExpress.Blazor.Office

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
BarItemCollection Items { get; }

Property Value

TypeDescription
BarItemCollection

The item collection.

|

Remarks

The Items property allows you to access an item collection for a ribbon or toolbar group. The collection can contain the following items:

You can get an item by its name or index.

razor
<DxRichEdit CustomizeRibbon=OnCustomizeRibbon />

@code {

    void OnCustomizeRibbon(IRibbon ribbon) {
        IRibbonTab homeTab = ribbon.Tabs[RichEditRibbonTabNames.Home];
        IBarGroup fontGroup = homeTab.Groups[RichEditRibbonGroupNames.HomeFont];
        // Returns the first item in the Font group
        IBarItem firstItem = fontGroup.Item[0];
        // Returns the Font Size item
        IBarItem fontSizeItem = fontGroup.Items[RichEditBarItemNames.FontSize];
    }
}

See Also

IBarGroup Interface

IBarGroup Members

DevExpress.Blazor.Office Namespace