Skip to main content

BootstrapClientPageControl.GetTab(index) Method

Returns a tab specified by its index.

Declaration

GetTab(
    index: number
): BootstrapClientTab

Parameters

Name Type Description
index number

An integer value specifying the zero-based index of the tab object to retrieve.

Returns

Type Description
BootstrapClientTab

A BootstrapClientTab object representing the tab located at the specified index within the control’s TabSpacing collection.

Remarks

The Page Control’s client-side functionality allows its tabs to be accessed programmatically on the client side. This method gets a client tab object specified by the index it has within the BootstrapPageControl.TabPages collection.

Note that the index parameter is zero-based and its upper available value is specified by the ASPxClientTabControlBase.GetTabCount value decremented by one. If an invalid index is passed via the parameter, the method returns null.

This method can be used together with the ASPxClientTabControlBase.GetTabCount method when iterating through the Page Control’s tab list.

See Also