Adds a tab to the tab strip.
public final int addTab( TabItem item )
public final int addTab( String text )
item
The TabItem object that represents the tab to add to the tab strip.
text
The text to display on the tab that is added to the tab strip.
Returns the zero-based index of the inserted tab within the tab strip.
If you pass a string to this method, a new TabItem object that has the passed string as its text property is created and then added to the tab control.
See Also removeTab