menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ButtonEditCellButton - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ButtonEditCellButton

    Defines a ButtonEdit CellButton Typically used with ButtonEditCellRenderer.

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

    Constructors

    ButtonEditCellButton(GridTextBoxCellRenderer)

    Initializes a ButtonEditCellButton and associates it with a ButtonEditCellRenderer

    Declaration
    public ButtonEditCellButton(GridTextBoxCellRenderer control)
    Parameters
    Type Name Description
    GridTextBoxCellRenderer control

    The ButtonEditCellRenderer that draws this cell button element.

    Methods

    Draw(Graphics, Int32, Int32, Boolean, GridStyleInfo)

    Draws the cell button at the specified row and column.

    Declaration
    public override void Draw(Graphics g, int rowIndex, int colIndex, bool bActive, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics context.

    System.Int32 rowIndex

    Row index.

    System.Int32 colIndex

    Column index.

    System.Boolean bActive

    True if this is the current cell; False otherwise.

    GridStyleInfo style

    GridStyleInfo object that provides cell information.

    Overrides
    GridCellButton.Draw(Graphics, Int32, Int32, Boolean, GridStyleInfo)

    DrawButtonFace(Graphics, ButtonState, GridStyleInfo)

    Draws the button face

    Declaration
    protected virtual void DrawButtonFace(Graphics g, ButtonState buttonState, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The System.Drawing.Graphics context of the canvas.

    System.Windows.Forms.ButtonState buttonState

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

    GridStyleInfo style

    The GridStyleInfo object that holds cell information.

    DrawDefaultButtonFace(Graphics, ButtonState, GridStyleInfo)

    Draws the default button face

    Declaration
    public void DrawDefaultButtonFace(Graphics g, ButtonState buttonState, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The System.Drawing.Graphics context of the canvas.

    System.Windows.Forms.ButtonState buttonState

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

    GridStyleInfo style

    The GridStyleInfo object that holds cell information.

    DrawText(Graphics, String, Font, Rectangle, GridStyleInfo, Color, Boolean, Boolean)

    Draws the text.

    Declaration
    public static void DrawText(Graphics g, string displayText, Font font, Rectangle textRectangle, GridStyleInfo style, Color textColor, bool drawDisabled, bool isRightToLeft)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The graphics instance.

    System.String displayText

    The display text.

    System.Drawing.Font font

    The font .

    System.Drawing.Rectangle textRectangle

    The text rectangle.

    GridStyleInfo style

    The style.

    System.Drawing.Color textColor

    Color of the text.

    System.Boolean drawDisabled

    if set to true [draw disabled].

    System.Boolean isRightToLeft

    if set to true [is right to left].

    OnDrawButtonFace(GridDrawButtonFaceEventArgs)

    Raises the GridDrawButtonFace event

    Declaration
    protected virtual void OnDrawButtonFace(GridDrawButtonFaceEventArgs e)
    Parameters
    Type Name Description
    GridDrawButtonFaceEventArgs e

    An GridDrawButtonFaceEventArgsGridDrawButtonFaceEventArgs that contains event data

    Implements

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