Back to Devexpress

RibbonPage.Groups Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribbonpage-4651c7e5.md

latest3.4 KB
Original Source

RibbonPage.Groups Property

Gets the collection of Ribbon page groups owned by the current page.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[XtraSerializableProperty(false, true, false)]
public virtual RibbonPageGroupCollection Groups { get; }
vb
<Browsable(False)>
<XtraSerializableProperty(False, True, False)>
Public Overridable ReadOnly Property Groups As RibbonPageGroupCollection

Property Value

TypeDescription
RibbonPageGroupCollection

A RibbonPageGroupCollection which contains Ribbon page groups of the current page.

|

Remarks

Use this property to access Ribbon page groups owned by the current page. You can use this property to add, remove and access specific pages.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Groups property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/SankeyChart/SankeyItemExtensionModule.cs#L40

csharp
RibbonPage page = designer.Ribbon.GetDashboardRibbonPage(typeof(SankeyItemMetadata), DashboardRibbonPage.Data);
RibbonPageGroup interactivityGroup = page.Groups[1];
BarItem drillDownBarItem = interactivityGroup.ItemLinks[2].Item;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/TreeList/TreeListItemExtensionModule.vb#L43

vb
Dim page As RibbonPage = designer.Ribbon.GetDashboardRibbonPage(GetType(TreeListItemMetadata), DashboardRibbonPage.Data)
Dim interactivityGroup As RibbonPageGroup = page.Groups(1)
Dim drillDownBarItem As BarItem = interactivityGroup.ItemLinks(2).Item

See Also

MergedGroups

RibbonPage Class

RibbonPage Members

DevExpress.XtraBars.Ribbon Namespace