Class ButtonEditCellButton
Defines a ButtonEdit CellButton Typically used with ButtonEditCellRenderer.
Implements
Inherited Members
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
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 |
System.Boolean | isRightToLeft | if set to |
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 |