BootstrapTabControl.Tabs Property
In This Article
Provides access to the collection of tabs.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
NuGet Package: DevExpress.Web.Bootstrap
#Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public BootstrapTabCollection Tabs { get; }
#Property Value
Type | Description |
---|---|
Bootstrap |
A Bootstrap |
#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:
<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