Skip to main content
A newer version of this page is available. .

BootstrapTabCollection Class

Represents a collection of tabs within the BootstrapTabControl.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v19.1.dll

Declaration

public class BootstrapTabCollection :
    TabCollection

The following members return BootstrapTabCollection objects:

Remarks

A tab control holds its tabs within a collection which is represented by an instance of the BootstrapTabCollection class and can be accessed using the BootstrapTabControl.Tabs property. The properties and methods exposed by the BootstrapTabCollection class can be used to perform common collection operations such as adding new or deleting existing tabs. Each item of the collection is represented by a BootstrapTab object. Individual tabs can be accessed using indexer notation, by their names or display texts using the specific methods of the collection.

Example

This example demonstrates the basic functionality of the Tab control.

The image below demonstrates the result:

BootstrapNavigation_Landing_Tabs

<dx:BootstrapTabControl runat="server">
    <Tabs>
        <dx:BootstrapTab Text="Home">
        </dx:BootstrapTab>
        <dx:BootstrapTab Text="Products">
        </dx:BootstrapTab>
        <dx:BootstrapTab Text="Support">
        </dx:BootstrapTab>
    </Tabs>
</dx:BootstrapTabControl>
See Also