Skip to main content

CustomDrawNavBarElementEventArgs.Image Property

Gets or sets the image displayed within the painted element.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v23.2.dll

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

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