Class ImageComboBox<T>
- Namespace
- AetherUtils.Core.WinForms.Controls
- Assembly
- AetherUtils.Core.dll
A special ComboBox that allows for images to be displayed next to the text string in the combobox.
This combo box only accepts items of type ImageComboBoxItem.
[UsedImplicitly]
public class ImageComboBox<T> : ComboBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable where T : ImageComboBoxItem
Type Parameters
T
- Inheritance
-
ImageComboBox<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
ImageComboBox()
Create a new ImageComboBox<T>.
public ImageComboBox()
ImageComboBox(ImageComboBoxItem)
Create a new ImageComboBox<T> with the specified starting item.
public ImageComboBox(ImageComboBoxItem item)
Parameters
itemImageComboBoxItem
ImageComboBox(T[])
Create a new ImageComboBox<T> with the specified items.
public ImageComboBox(T[] items)
Parameters
itemsT[]
Methods
OnDrawItem(DrawItemEventArgs)
Raises the DrawItem event.
protected override void OnDrawItem(DrawItemEventArgs e)
Parameters
eDrawItemEventArgs- A DrawItemEventArgs that contains the event data.