CustomDrawNavBarElementEventArgs.Caption Property

Gets or sets the caption of the painted element.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v20.1.dll

Declaration

public string Caption { get; set; }
Public Property Caption As String

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