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

ListBoxDrawItemEventArgs Class

Supplies data for the BaseListBoxControl.DrawItem event.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public class ListBoxDrawItemEventArgs :
    BaseEditCustomDrawArgs

#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 that allow you to obtain data needed to paint a specific item displayed within the control. The Handled property specifies whether default item painting is prohibited. You must set this property to true so that custom item painting implemented in the event handler can take effect.

ListBoxDrawItemEventArgs objects are automatically created and passed to BaseListBoxControl.DrawItem event handlers.

#Inheritance

Object
EventArgs
DevExpress.XtraEditors.Drawing.BaseEditCustomDrawArgs
ListBoxDrawItemEventArgs
See Also