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

CustomDrawNavBarElementEventArgs.Image Property

Gets or sets the image displayed within the painted element.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v18.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Image 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