Skip to main content

BootstrapTabControl.Tabs Property

Provides access to the collection of tabs.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v23.2.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

[PersistenceMode(PersistenceMode.InnerProperty)]
public BootstrapTabCollection Tabs { get; }

Property Value

Type Description
BootstrapTabCollection

A BootstrapTabCollection object representing the collection of the Tab Control’s tabs.

Remarks

The Tabs property provides access to a collection that contains all the tabs of the current Tab Control. This collection provides standard means to manipulate (add or remove) tabs within the tab control. A particular tab can be accessed using index notation.

Example

This example demonstrates the basic functionality of the Tab control.

  • Initialize a new instance of the BootstrapTabControl class.
  • Add required tabs to the BootstrapTabControl.Tabs collection. Each tab item is represented by the BootstrapTab object.

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