NavBarItem.VisibleIndex Property
Gets or sets a value specifying the position of the current item amongst the visible items in a group.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value specifying the zero-based index of the NavBarItem amongst a group’s visible items. -1 if the item is invisible. |
Remarks
Use the VisibleIndex property to control where the item is displayed within its group. If the VisibleIndex property is set to -1, the item is not displayed.
A particular visible item within a group can be obtained by the item’s visible index using the Collection<T>.GetVisibleItem method of the group’s NavBarGroup.Items collection. The total number of visible items within a group is returned by the Collection<T>.GetVisibleItemCount method.
Note that the VisibleIndex and NavBarItem.Visible properties are interdependent.The -1 value assigned to the VisibleIndex property sets the NavBarItem.Visible property to false
. Setting the VisibleIndex property to a non-negative value makes the NavBarItem.Visible property set to true
.