Skip to main content

CheckedComboBoxEdit.DrawListBoxItem Event

Fires when the control paints a dropdown list item. Handle this event to customize item appearance.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v25.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event ListBoxDrawItemEventHandler DrawListBoxItem

Event Data

The DrawListBoxItem event's data class is ListBoxDrawItemEventArgs. The following properties provide information specific to this event:

Property Description
AllowDrawSkinBackground Gets or sets whether the item background is colored according to the currently applied skin.
Appearance Gets the appearance settings used to paint the item currently being processed.
Bounds Gets the bounding rectangle of the item being painted.
Index Gets the index of the item being painted.
Item Gets the value of the processed item.
PaintArgs
State Gets the state of the item being painted.

Remarks

Handle the DrawListBoxItem event to override the default item painting. Set e.Handled to true to suppress the default rendering. Use e.Cache to paint the item background and text within e.Bounds.

See Also