Skip to main content

CustomDrawNavBarElementEventArgs.Caption Property

Gets or sets the caption of the painted element.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v23.2.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

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