Class GridDrawButtonFaceEventArgs
Provides data for the GridDrawButtonFace event.
Inheritance
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public sealed class GridDrawButtonFaceEventArgs : SyncfusionHandledEventArgs
Remarks
GridDrawButtonFaceEventArgs is a custom event argument class used by the GridDrawButtonFaceEventArgs event to allow custom drawing of a buttonedit. Set the Handled property true if you have drawn the cell button contents and do not want the grid to proceed with default button drawing.
Constructors
GridDrawButtonFaceEventArgs(ButtonEditCellButton, Graphics, GridStyleInfo, Int32, Int32)
Initializes new instance of the GridDrawButtonFaceEventArgs class
Declaration
public GridDrawButtonFaceEventArgs(ButtonEditCellButton button, Graphics graphics, GridStyleInfo style, int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
ButtonEditCellButton | button | Reference to ButtonEditCellButton |
System.Drawing.Graphics | graphics | Graphics context |
GridStyleInfo | style | The GridStyleInfo object that holds cell information. |
System.Int32 | rowIndex | The row index of a cell. |
System.Int32 | colIndex | The column index of a cell. |
Properties
Button
Gets the ButtonEditCellButton that is associated with the cell
Declaration
[TraceProperty(true)]
public ButtonEditCellButton Button { get; }
Property Value
Type | Description |
---|---|
ButtonEditCellButton | The button. |
Remarks
If you do not set ButtonEditCellButton to True, this buttons's DrawDefaultButtonFace(Graphics, ButtonState, GridStyleInfo) will get called.
ColIndex
Gets the index of the column.
Declaration
[TraceProperty(true)]
public int ColIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The index of the col. |
Graphics
Gets the graphics context.
Declaration
[TraceProperty(true)]
public Graphics Graphics { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Graphics | The graphics. |
RowIndex
Gets the index of the row.
Declaration
[TraceProperty(true)]
public int RowIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The index of the row. |
Style
Gets the cell style.
Declaration
[TraceProperty(true)]
public GridStyleInfo Style { get; }
Property Value
Type | Description |
---|---|
GridStyleInfo | The style. |