Back to Devexpress

NavBarItem.Text Property

aspnet-devexpress-dot-web-dot-navbaritem-288aa8f6.md

latest2.2 KB
Original Source

NavBarItem.Text Property

Gets or sets the text content of the current item.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("Item")]
public string Text { get; set; }
vb
<DefaultValue("Item")>
Public Property Text As String

Property Value

TypeDefaultDescription
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

NavigateUrl

NavBarItemCollection.FindByText

NavBarItems.FindByText

Navigation Bar

NavBarItem Class

NavBarItem Members

DevExpress.Web Namespace