Back to Devexpress

TabBase.VisibleIndex Property

aspnet-devexpress-dot-web-dot-tabbase-29c0531f.md

latest2.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public int VisibleIndex { get; set; }
vb
Public Property VisibleIndex As Integer

Property Value

TypeDescription
Int32

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

|

Remarks

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

Visible

GetVisibleTab(Int32)

GetVisibleTabCount()

GetVisibleTabPage(Int32)

GetVisibleTabPageCount()

Page Control and Tab Control

TabBase Class

TabBase Members

DevExpress.Web Namespace