Back to Devexpress

NavBarItem Class

aspnet-devexpress-dot-web-e758f623.md

latest4.7 KB
Original Source

NavBarItem Class

Represents an individual item within the ASPxNavBar control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class NavBarItem :
    CollectionItem
vb
Public Class NavBarItem
    Inherits CollectionItem

The following members return NavBarItem objects:

Show 15 links

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

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem NavBarItem BootstrapAccordionItem

MVCxNavBarItem

See Also

NavBarItem Members

NavBarGroup.Items

ASPxNavBar.Items

Navigation Bar

DevExpress.Web Namespace