Skip to main content
A newer version of this page is available. .

CustomDrawNavBarElementEventArgs.Caption Property

Gets or sets the caption of the painted element.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v18.2.dll

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Caption property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also