Base Combo BoxDraw Item Image Event
This event is raised when the control needs to draw the image to the left of the text value
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public event DrawItemEventHandler DrawItemImageVB
Public Event DrawItemImage As DrawItemEventHandlerC++
public:
event DrawItemEventHandler^ DrawItemImage {
void add (DrawItemEventHandler^ value);
void remove (DrawItemEventHandler^ value);
}F#
member DrawItemImage : IEvent<DrawItemEventHandler,
DrawItemEventArgs>Value
DrawItemEventHandlerRemarks
The event is passed a DrawItemEventArgs object. The following properties in it are set:
| Property | Description |
|---|---|
| BackColor | The background color for the combo box. |
| Bounds | The bounds of the area for the image. |
| Font | The font being used by the combo box. |
| ForeColor | The foreground color for the combo box. |
| Graphics | The graphics object that can be used to draw the image. |
| Index | The index of the currently selected item. |
| State | The current item state(s) for the combo box. This can be None or one or more of the values Disabled, Focus, and/or Selected. |