Skip to main content
A newer version of this page is available. .

RibbonControl.TotalPageCategory Property

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

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

[Browsable(false)]
public RibbonTotalPageCategory TotalPageCategory { 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 members provided by the TotalPageCategory property allows you access all pages and only visible pages owned by the RibbonControl.

To get pages that belong to the Default Category, use the RibbonControl.DefaultPageCategory property. To access pages that belong to custom categories, see the RibbonControl.PageCategories property.

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