Back to Devexpress

NavBarItem.VisibleIndex Property

aspnet-devexpress-dot-web-dot-navbaritem-25979efc.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public int VisibleIndex { get; set; }
vb
Public Property VisibleIndex As Integer

Property Value

TypeDescription
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.

See Also

Visible

Web.Collection

Web.Collection

Navigation Bar

NavBarItem Class

NavBarItem Members

DevExpress.Web Namespace