Skip to main content
Tab

NavBarItem.Text Property

Gets or sets the text content of the current item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("Item")]
public string Text { get; set; }

Property Value

Type Default Description
String "Item"

A string value that specifies the text content of the NavBarItem.

Remarks

Use the Text property to specify the current item’s text content. The position of the text within items is specified by the AppearanceStyleBase.HorizontalAlign and AppearanceStyleBase.VerticalAlign properties available via the NavBarGroup.ItemStyle property of the group to which the items belong.

If the NavBarItem.NavigateUrl property of an item is assigned, the item’s text set by the Text property is underlined.

In addition to the text, you can specify an item’s image and hint text using the NavBarItem.Image and NavBarItem.ToolTip properties respectively.

See Also