Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue("")]
[DXCategory("Properties")]
public virtual string Caption { get; set; }

#Property Value

Type Default Description
String String.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