Version

ConvertTabIndexToCollectionIndex Method

Convert the index of an item within instances of the Tab class to the index of that item within the whole collection.
Syntax
'Declaration
 
Public Function ConvertTabIndexToCollectionIndex( _
   ByVal tabIndex As Integer _
) As Integer
public int ConvertTabIndexToCollectionIndex( 
   int tabIndex
)

Parameters

tabIndex
Index of an item within items of the Tab class (skipping separators).

Return Value

Index of a Tab item within all items in the collection or the value -1.
Remarks

Below is an example of usage.

Assume that an application has 6 TabItems which include: TabSeparator, Tab ("Tab1"), Tab ("Tab2"), TabSeparator, TabSeparator, Tab ("Tab3").

Within instances of the Tab objects (skipping separators), the index of the Tab with Text equal to "Tab2" is 1, but the index of that Tab within all TabItems is 2.

So, UltraWebTab1.Tabs.ConvertTabIndexToCollectionIndex(1) will return the value of 2. Similar, for the Tab with Text equal to "Text3", the UltraWebTab1.Tabs.ConvertTabIndexToCollectionIndex(2) will return the value of 5.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also