Event arguments for a DrawableCell.Paint or CustomCell.Paint event.
Constructors
CellPaintEventArgs
#public CellPaintEventArgs(Graphics graphics, RectangleF clipRectangle, CellStates cellState, object item)
Initializes a new instance of the DrawableCellPaintEventArgs class.
Parameters:
| graphics (Graphics) | Graphics context for drawing. |
| clipRectangle (RectangleF) | Clip rectangle for the cell's region. |
| cellState (CellStates) | State of the cell. |
| item (object) | Item from the data store for the row that is being painted. |
Properties
Remarks: This should be used to optimize what is drawn by only drawing content that intersects with this rectangle.
Value: The clip rectangle for the current paint operation
IsEditing
#Gets a value indicating whether the cell is in edit mode.
Value:
true if this cell is in edit mode; otherwise, false.IsSelected
#Gets a value indicating whether the cell is currently selected.
Value:
true if the cell is selected; otherwise, false.