Class ColorComboBox
Implements a dropdown list with colors associated with each list item.
Implements
System.ComponentModel.ISupportInitialize
Inherited Members
Namespace: Syncfusion.Windows.Forms.Schedule
Assembly: Syncfusion.Schedule.Windows.dll
Syntax
public class ColorComboBox : ComboBoxBase, IThemedControl, ISupportInitialize, INonClientPaintingSupport, ISupportOffice2007Theme, IVisualStyle
Constructors
ColorComboBox()
Initializes a new instance of the ColorComboBox class.
Declaration
public ColorComboBox()
Properties
ShowColor
Gets or sets a value indicating whether color splotch should be drawn in the dropdown.
Declaration
public bool ShowColor { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
CorrectPopupLocation(Point)
Sets the correct Popup location.
Declaration
protected override Point CorrectPopupLocation(Point location)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | location |
Returns
Type | Description |
---|---|
System.Drawing.Point | Popup location. |
Overrides
DrawEditPortion(PaintEventArgs)
Overridden to draw color if ShowColor is true.
Declaration
protected override void DrawEditPortion(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | The System.Windows.Forms.PaintEventArgs that contains the event data. |
Overrides
OnEnter(EventArgs)
Overrides the Entering event for selecting the drop down list item.
Declaration
protected override void OnEnter(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
Overrides
OnLeave(EventArgs)
Overrides the Leave event.
Declaration
protected override void OnLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnPaint(PaintEventArgs)
Overrides the painting event for drawing the rectangle.
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e |
Overrides
Implements
System.ComponentModel.ISupportInitialize