Skip to main content

TabCollection.GetVisibleTabCount() Method

Returns the number of visible tabs in the ASPxTabControl.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public int GetVisibleTabCount()


Type Description

An integer value representing the number of visible tabs in the tab control.


The visibility of a tab within the ASPxTabControl is controlled by two interrelated properties: the TabBase.Visible and TabBase.VisibleIndex. To obtain a particular visible tab by its visible index use the TabBase.VisibleIndex method.

The GetVisibleTabCount method returns the number of tabs currently visible in the control. The GetVisibleTabCount method can be used together with the TabCollection.GetVisibleTab method to iterate through the collection of visible tabs in the ASPxTabControl.

See Also