A newer version of this page is available. Switch to the current version.

BootstrapMenuItemCollection.Item[Int32] Property

Provides indexed access to individual items in the collection.

Namespace: DevExpress.Web.Bootstrap

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


public BootstrapMenuItem this[int index] { get; set; }
Public Property Item(index As Integer) As BootstrapMenuItem


Name Type Description
index Int32

A zero-based integer specifying the desired item's position within the collection. If it's negative or exceeds the last available index, an exception is raised.

Property Value

Type Description

A BootstrapMenuItem object which represents the menu item at the specified position.


Use this property to access items using index notation.


This example demonstrates the basic functionality of the Menu control.

The image below shows the result:


<dx:BootstrapMenu runat="server" ShowPopOutImages="true">
        <dx:BootstrapMenuItem Text="Home" IconCssClass="fa fa-home">
                <dx:BootstrapMenuItem Text="News">
                        <dx:BootstrapMenuItem Text="For Developers">
                        <dx:BootstrapMenuItem Text="Website news">
                <dx:BootstrapMenuItem Text="Our Mission" BeginGroup="true">
                <dx:BootstrapMenuItem Text="Our Customers">
See Also