Returns a SftTabsTab object given a tab index.
| Get | |||
| VB | Set refTabObj = object.Tab(ByVal TabIndex As Integer) As SftTabsTab |
object
TabIndex
The zero-based index of the tab to be accessed.
refTabObj
Returns a reference to the SftTabsTab object.
The Tab property returns a SftTabsTab object given a tab index.
The Tab property returns a SftTabsTab object for the desired tab TabIndex. The properties of the tab can be updated using the returned SftTabsTab object.
Private Sub Form_Load()
Dim TabIndex As Integer
Dim TabObject As SftTabsLib.SftTabsTab
With SftTabs1.Direct
.Tabs.Clear
TabIndex = .Tabs.Add("First Tab")
Set TabObject = .Tab(TabIndex)
TabObject.BackColor = vbBlue
TabObject.BackColorActive = vbBlue
TabObject.ForeColor = vbWhite
TabObject.ForeColorActive = vbWhite
.Tabs.Add "Second Tab"
End With
End SubSee Also SftTabs Object | Object Hierarchy