Skip to main content

TabBase.VisibleIndex Property

Gets or sets a value specifying the position of the current tab (tabbed page) amongst the visible tabs (tabbed pages) in a tab control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public int VisibleIndex { get; set; }

Property Value

Type Description

An integer value specifying the zero-based index of the TabBase amongst the tab control’s visible tabs. -1 if the tab is invisible.


Use the VisibleIndex property to control where the current tab is displayed within a tab control. If the VisibleIndex property is set to -1, the tab is not displayed.

A particular visible tab (tabbed page) can be obtained by its visible index using the TabCollection.GetVisibleTab (TabPageCollection.GetVisibleTabPage) method of the control’s ASPxTabControl.Tabs (ASPxPageControl.TabPages) collection. The total number of visible tabs (tabbed pages) is returned by the TabCollection.GetVisibleTabCount (TabPageCollection.GetVisibleTabPageCount) method.

Note that the VisibleIndex and TabBase.Visible properties are interdependent. The -1 value assigned to the VisibleIndex property sets the TabBase.Visible property to false. Setting the VisibleIndex property to a non-negative value makes the TabBase.Visible property set to true.

See Also