WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellComboBoxButton

    Show / Hide Table of Contents

    Class GridCellComboBoxButton

    Implements a cell button element that looks like a combo box button. Typically used with GridComboBoxCellRenderer and GridDropDownCellRenderer.

    Inheritance
    System.Object
    NonFinalizeDisposable
    GridCellButton
    GridCellComboBoxButton
    Implements
    System.IDisposable
    Inherited Members
    GridCellButton.Draw(Graphics, Int32, Int32, Boolean, GridStyleInfo)
    GridCellButton.DrawMetroButtonStyle(Graphics, Rectangle, ButtonState, String, Boolean)
    GridCellButton.IsHovering(Int32, Int32)
    GridCellButton.SetHovering(GridCellHitTestInfo, Boolean)
    GridCellButton.IsMouseDown(Int32, Int32)
    GridCellButton.SetMouseDown(GridCellHitTestInfo, Boolean)
    GridCellButton.IsPushed(Int32, Int32)
    GridCellButton.SetPushed(Int32, Int32, Rectangle, Boolean)
    GridCellButton.HitTest(Int32, Int32, MouseEventArgs, IMouseController)
    GridCellButton.MouseHoverEnter(GridCellHitTestInfo)
    GridCellButton.MouseHover(MouseEventArgs, GridCellHitTestInfo)
    GridCellButton.MouseHoverLeave(EventArgs, GridCellHitTestInfo)
    GridCellButton.MouseDown(MouseEventArgs, GridCellHitTestInfo)
    GridCellButton.MouseMove(MouseEventArgs, GridCellHitTestInfo)
    GridCellButton.MouseUp(MouseEventArgs, GridCellHitTestInfo)
    GridCellButton.GetCursor(GridCellHitTestInfo)
    GridCellButton.CancelMode(GridCellHitTestInfo)
    GridCellButton.OnClicked(GridCellEventArgs)
    GridCellButton.OnHoveringChanged(GridCellEventArgs)
    GridCellButton.OnMouseDownChanged(GridCellEventArgs)
    GridCellButton.OnPushedChanged(GridCellEventArgs)
    GridCellButton.Bounds
    GridCellButton.Text
    GridCellButton.MouseDownInfo
    GridCellButton.Grid
    GridCellButton.Owner
    GridCellButton.FireClickOnMouseUp
    GridCellButton.Clicked
    GridCellButton.HoveringChanged
    GridCellButton.MouseDownChanged
    GridCellButton.PushedChanged
    NonFinalizeDisposable.Dispose()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridCellComboBoxButton : GridCellButton, IDisposable
    Remarks

    The combo box button is XP Themes enabled. It will be drawn themed if ThemesEnabled is True.

    Constructors

    GridCellComboBoxButton(GridCellRendererBase)

    Initializes a GridCellComboBoxButton and associates it with a GridCellRendererBase.

    Declaration
    public GridCellComboBoxButton(GridCellRendererBase control)
    Parameters
    Type Name Description
    GridCellRendererBase control

    The GridCellRendererBase that draws this cell button element.

    Properties

    DrawEllipsis

    Gets or sets a value indicating whether ellipsis (...) should be drawn instead of the default combo box button.

    Declaration
    public bool DrawEllipsis { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Dispose(Boolean)

    Disposes the unmanaged resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    GridCellButton.Dispose(Boolean)

    DrawButton(Graphics, Rectangle, ButtonState, GridStyleInfo)

    Draws a button using System.Windows.Forms.ControlPaint.DrawButton(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.ButtonState) or if XP Themes are enabled, button will be drawn themed.

    Declaration
    public override void DrawButton(Graphics g, Rectangle rect, ButtonState buttonState, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The System.Drawing.Graphics context of the canvas.

    System.Drawing.Rectangle rect

    The System.Drawing.Rectangle with the bounds.

    System.Windows.Forms.ButtonState buttonState

    A System.Windows.Forms.ButtonState that specifies the current state.

    GridStyleInfo style

    The style information for the cell.

    Overrides
    GridCellButton.DrawButton(Graphics, Rectangle, ButtonState, GridStyleInfo)

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved