BootstrapTabCollection Class
Represents a collection of tabs within the BootstrapTabControl.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
Declaration
Related API Members
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.
- 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>