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

RibbonPageCategoryCollection.TotalCategory Property

Allows you to return all pages and visible pages owned by the RibbonControl.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public RibbonTotalPageCategory TotalCategory { get; }

#Property Value

Type Description
DevExpress.XtraBars.Ribbon.RibbonTotalPageCategory

A DevExpress.XtraBars.Ribbon.RibbonTotalPageCategory object that allows you to return all pages and visible pages owned by the RibbonControl.

#Remarks

The TotalCategory and RibbonControl.TotalPageCategory properties are synchronized.

#Example

The following code shows how to iterate through the collection of visible Ribbon pages.

To access a RibbonControl’s collection of visible pages, the RibbonControl.TotalPageCategory property is used. The object returned by this property allows you to access all pages and only visible pages.

using DevExpress.XtraBars.Ribbon;

ArrayList visiblePages = RibbonControl1.TotalPageCategory.GetVisiblePages();
foreach (RibbonPage page in visiblePages) {
    if (page.Text == "Selection") {
        page.Visible = false;
        break;
    }
}
See Also