Use the GetVisibleItemCount() method instead.
Returns the number of visible groups in the navbar.
An integer value representing the number of visible groups in the navbar.
The visibility of a group within the navbar is controlled by two interrelated properties: the NavBarGroup.Visible and NavBarGroup.VisibleIndex. To obtain a particular visible group by its visible index use the NavBarGroupCollection.GetVisibleGroup method.
The GetVisibleGroupCount method returns the number of groups currently visible in the navbar control. The GetVisibleGroupCount method can be used together with the NavBarGroupCollection.GetVisibleGroup method to iterate through the collection of visible groups in the navbar.