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.Image Property

Gets or sets the image displayed within the painted element.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public Image Image { get; set; }

#Property Value

Type Description
Image

A System.Drawing.Image object representing the element’s image.

#Remarks

Read the Image property to obtain the painted element’s image. Use the obtained object to draw element images in a desired manner. Note that you can also assign a value to this property. The assigned image will be displayed within the element only if the CustomDrawObjectEventArgs.Handled property is not set to true within an event handler. Note that assigning a value to the Image property doesn’t affect the CustomDrawNavBarElementEventArgs.Image property of the painted element.

See Also