Class ComboBoxPopup
Represents a class that helps to show popup control for SfComboBox.
Implements
Inherited Members
Namespace: Syncfusion.WinForms.ListView
Assembly: Syncfusion.SfListView.WinForms.dll
Syntax
public class ComboBoxPopup : Popup, IPopupHost, IPopupChild, IKeyboardMessage, IMouseMoveMessage, IMouseHook, IKeyboardHook, IPopupParent, IPopup
Constructors
ComboBoxPopup(Control, SfComboBox)
Initializes a new instance of the ComboBoxPopup class.
Declaration
public ComboBoxPopup(Control control, SfComboBox comboBox)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | The control. |
SfComboBox | comboBox | The SfComboBox control. |
Properties
BorderColor
Gets or sets ComboBoxPopup BorderColor.
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
CancelButton
Gets the cancel button control for drop down.
Declaration
public SfButton CancelButton { get; }
Property Value
Type |
---|
SfButton |
MaximumSize
Gets or sets the maximum drop down size.
Declaration
public override Size MaximumSize { get; set; }
Property Value
Type |
---|
System.Drawing.Size |
MinimumSize
Minimum size of the drop down popup containter control.
Declaration
public override Size MinimumSize { get; set; }
Property Value
Type |
---|
System.Drawing.Size |
OkButton
Gets the ok button control for drop doww.
Declaration
public SfButton OkButton { get; }
Property Value
Type |
---|
SfButton |
ShowButtons
Overrides the show buttons
Declaration
public override bool ShowButtons { get; set; }
Property Value
Type |
---|
System.Boolean |
Overrides
ShowGripper
Gets or sets a value indicating whether the gripper can show or not.
Declaration
public override bool ShowGripper { get; set; }
Property Value
Type |
---|
System.Boolean |
Overrides
Methods
Hide(PopupCloseAction)
Hides a popup with the specified PopupCloseType mode.
Declaration
public override void Hide(PopupCloseAction popupCloseType)
Parameters
Type | Name | Description |
---|---|---|
PopupCloseAction | popupCloseType | A PopupCloseType value. |
Overrides
OnResize(EventArgs)
Fires the event indicating that the panel has been resized.
Declaration
protected override void OnResize(EventArgs eventargs)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | eventargs | An System.EventArgs that contains the event data. |
SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
Performs the work of setting the specified bounds of this control.
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The new Left property value of the control. |
System.Int32 | y | The new Top property value of the control. |
System.Int32 | width | The new Width property value of the control. |
System.Int32 | height | The new Height property value of the control. |
System.Windows.Forms.BoundsSpecified | specified | A bitwise combination of the System.Windows.Forms.BoundsSpecified values. |
Show(Point)
Shows the popup when click on the drop down button of SfComboBox.
Declaration
public override void Show(Point location)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | location | The location where need to show the popup window. |
Overrides
WndProc(ref Message)
Override WndProc to get the window messages.
Declaration
protected override void WndProc(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m | Window message is sent to the handle of the window. |