NavItemCollection.Item[Int32] Property
In This Article
Gets an item of the collection by its index.
Namespace: DevExpress.XtraNavBar
Assembly: DevExpress.XtraNavBar.v24.2.dll
NuGet Package: DevExpress.Win
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
index | Int32 | An integer value specifying the zero-based index of the desired item. |
#Property Value
Type | Description |
---|---|
Nav |
A Nav |
#Remarks
If the parameter value is negative or exceeds the maximum available index, an exception is raised.
#Example
The following sample code shows you how to iterate over NavBarControl items via the NavBarControl.Items property.
using DevExpress.XtraNavBar;
// ...
for (int i = 0; i < navBarControl1.Items.Count; i++) {
NavBarItem item = navBarControl1.Items[i];
// perform some operations on an item here
//...
}
See Also