Class GridComboBoxListBoxPart
Implements the list box that can be displayed in a drop-down window for
a combo box. Handles autoscrolling and resize to fit contents.
Inheritance
System.Object
GridComboBoxListBoxPart
Assembly: Syncfusion.Shared.Base.dll
public class GridComboBoxListBoxPart : ListBox
Constructors
Declaration
public GridComboBoxListBoxPart()
Properties
BindingContext
Declaration
public override BindingContext BindingContext { get; set; }
Property Value
Type |
System.Windows.Forms.BindingContext |
Gets / sets the preferred number of visible rows.
Declaration
public int DropDownRows { get; set; }
Property Value
Declaration
public override int SelectedIndex { get; set; }
Property Value
Methods
Overloaded. Calculates optimal width for this list box based on current items.
Declaration
protected int GetOptimalWidth()
Returns
Type |
Description |
System.Int32 |
The width in pixels large enough so that no item text needs to be clipped.
|
Calculates optimal width for this list box based on current items using a
provided System.Drawing.Graphics object.
Declaration
protected virtual int GetOptimalWidth(Graphics g)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
Returns
Type |
Description |
System.Int32 |
The width in pixels large enough so that no item text needs to be clipped.
|
Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Handles the System.Windows.Forms.Timer.Tick event of an internal
timer that is started when the user has pressed the mouse down.
Declaration
protected virtual void OnTimerEvent(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
The source of the event.>
|
System.EventArgs |
e |
The System.EventArgs with event data.
|
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Windows.Forms.BoundsSpecified |
specified |
|
Declaration
protected override void WndProc(ref Message msg)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
msg |
|