Adds a tab to the tab strip at the specified position.
public final int insertTab( int index, TabItem item )
public final int insertTab( int index, String text )
index
The zero-based position where you want to insert the tab into the tab strip.
item
The TabItem object that represents the tab to insert into the tab strip.
text
The text for a new tab to create and add to the tab strip.
WFCInvalidArgumentException thrown if the specified index is not valid.
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.