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

CustomDrawNavBarElementEventArgs.Caption Property

Gets or sets the caption of the painted element.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public string Caption { get; set; }

#Property Value

Type Description
String

A string value specifying the painted element’s caption.

#Remarks

Read the Caption property to obtain the painted element’s caption. Use the obtained string to draw an element caption in a desired manner. Note that you can also assign a value to this property. The assigned value will be displayed as an element caption only if the CustomDrawObjectEventArgs.Handled property is not set to true within an event handler. Assigning a value to the Caption property doesn’t affect the NavElement.Caption property of the painted element.

See Also