TabStrip.insertTab

Overview | Methods | This Package | All Packages

TabStrip.insertTab

Adds a tab to the tab strip at the specified position.

Syntax

public final int insertTab( int index, TabItem item )

public final int insertTab( int index, String text )

Parameters

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.

Exceptions

WFCInvalidArgumentException thrown if the specified index is not valid.

Remarks

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.