Skip to main content
Tab

NavBarGroup.VisibleIndex Property

Gets or sets a value specifying the position of the group amongst the visible groups in the navbar control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public int VisibleIndex { get; set; }

Property Value

Type Description
Int32

An integer value specifying the zero-based index of the NavBarGroup amongst the navbar’s visible groups. -1 if the group is invisible.

Remarks

Use the VisibleIndex property to control where the group is displayed within the navbar control. If the VisibleIndex property is set to -1, the group is not displayed.

A particular visible group can be obtained by its visible index using the NavBarGroupCollection.GetVisibleGroup method of the navbar’s ASPxNavBar.Groups collection. The total number of visible groups is returned by the NavBarGroupCollection.GetVisibleGroupCount method.

Note that the VisibleIndex and NavBarGroup.Visible properties are interdependent. The -1 value assigned to the VisibleIndex property sets the NavBarGroup.Visible property to false. Setting the VisibleIndex property to a non-negative value makes the NavBarGroup.Visible property set to true.

See Also