Tab
A newer version of this page is available. Switch to the current version.

NavBarItem Class

Represents an individual item within the ASPxNavBar control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class NavBarItem :
    CollectionItem
Public Class NavBarItem
    Inherits CollectionItem

Remarks

The NavBarItem class implements the functionality of an individual navbar item within the ASPxNavBar control. Instances of the NavBarItem class are maintained within the NavBarGroup.Items collection of each group and within the ASPxNavBar.Items collection of a navbar control. Individual items can be added/deleted to/from a navbar control by using the means provided by the NavBarGroup.Items collection of the group level.

Use properties of the NavBarItem class to specify the appearance and behavior of an individual item. You can define the NavBarItem.Text, NavBarItem.Image, NavBarItem.ToolTip and NavBarItem.Visible properties to specify the item's caption text, image displayed in the item, the tool tip and visibility state. Specify the NavBarItem.NavigateUrl and NavBarItem.Target properties to set the URL the client web browser navigates to when an end user clicks the item and the window or frame in which to display the content.

Note that the NavBarItem class has a client-side equivalent - an object of the ASPxClientNavBarItem type.

See Also