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

BootstrapMenuItemCollection.Item[Int32] Property

Provides indexed access to individual items in the collection.

Namespace: DevExpress.Web.Bootstrap

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

Declaration

public BootstrapMenuItem this[int index] { get; set; }

Parameters

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
BootstrapMenuItem

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

Remarks

Use this property to access items using index notation.

Example

This example demonstrates the basic functionality of the Menu control.

The image below shows the result:

BootstrapMenu

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