ListBoxDrawItemEventArgs Class
Provides data for the BaseListBoxControl.DrawItem event.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v18.1.dll
Declaration
Remarks
The list box control enables you to custom paint its items. This is performed by handling the BaseListBoxControl.DrawItem event. The ListBoxDrawItemEventArgs class introduces properties which allow you to obtain data needed to paint a specific item displayed within the control. The ListBoxDrawItemEventArgs.Handled property specifies whether default item painting is prohibited. You must set this property to true so that item custom painting implemented in the event handler can take effect.
ListBoxDrawItemEventArgs objects are automatically created and passed to BaseListBoxControl.DrawItem event handlers.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ListBoxDrawItemEventArgs class.
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.