InsertTab Method
Description
Inserts a tab into the Ribbon Bar.
Syntax
Public Function InsertTab( _
ByVal [Index](#) As Long, _
ByVal [Caption](#) As String _
) As [RibbonTab](XtremeCommandBars~RibbonTab.md)
Parameters
- Index: Position within the tabs collection in which to insert the new tab.
- Caption: String to display in the tab button. This will set the caption of the new RibbonTab object.
Return Type
Returns a RibbonTab object containing the new tab that was added to the Ribbon Bar.
Remarks
InsertTab adds a new RibbonTab to the tabs collection of the Ribbon Bar.
Tabs in the Ribbon Bar contain one or more RibbonGroup objects. Buttons, popups, etc. can then be added to the groups.
The TabCount property can be used to determine the total number of tabs that have been added.
See Also
- RibbonBar Collection
- RibbonTab Caption Property
- TabCount Property
- AddGroup Method
- InsertGroup Method
- RibbonGroup Object
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.