Back to Devexpress

NavElement.Caption Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-navelement-3296881e.md

latest2.9 KB
Original Source

NavElement.Caption Property

Gets or sets the caption of the current NavElement when it is rendered as a button in the TileNavPane‘s nav bar.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
[DXCategory("Properties")]
public virtual string Caption { get; set; }
vb
<DXCategory("Properties")>
<DefaultValue("")>
Public Overridable Property Caption As String

Property Value

TypeDefaultDescription
StringString.Empty

The String value specifying the caption of the current NavElement when it is rendered as a button in the TileNavPane‘s nav bar.

|

Remarks

Use the Caption property to specify the caption of the current NavElement. This caption is displayed in the button that represents the current NavElement in the TileNavPane‘s nav bar.

You can also use the NavElement.Glyph property to specify the NavElement‘s glyph that, along with the Caption , is used to describe the button’s purpose.

If an element is displayed as a tile, you can specify the text and image to be displayed in a tile with the TileNavElement.TileText and TileNavElement.TileImage properties.

See Also

Glyph

ElementClick

TileText

TileImage

NavElement Class

NavElement Members

DevExpress.XtraBars.Navigation Namespace