WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridComboBoxListBoxPart - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class GridComboBoxListBoxPart : ListBox

    Constructors

    GridComboBoxListBoxPart()

    Initializes a new GridComboBoxListBoxPart control.

    Declaration
    public GridComboBoxListBoxPart()

    Properties

    BindingContext

    Declaration
    public override BindingContext BindingContext { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.BindingContext

    DropDownRows

    Gets / sets the preferred number of visible rows.

    Declaration
    public int DropDownRows { get; set; }
    Property Value
    Type Description
    System.Int32

    SelectedIndex

    Declaration
    public override int SelectedIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    GetOptimalWidth()

    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.

    GetOptimalWidth(Graphics)

    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.

    OnLocationChanged(EventArgs)

    Declaration
    protected override void OnLocationChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnMouseDown(MouseEventArgs)

    Declaration
    protected override void OnMouseDown(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnMouseMove(MouseEventArgs)

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnMouseUp(MouseEventArgs)

    Declaration
    protected override void OnMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnTimerEvent(Object, EventArgs)

    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.

    SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

    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

    WndProc(ref Message)

    Declaration
    protected override void WndProc(ref Message msg)
    Parameters
    Type Name Description
    System.Windows.Forms.Message msg
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved