BaseComboBoxCellPaint Method
This is overridden to paint the cell
Namespace: EWSoftware.ListControls.DataGridViewControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected override void Paint(
Graphics graphics,
Rectangle clipBounds,
Rectangle cellBounds,
int rowIndex,
DataGridViewElementStates cellState,
Object value,
Object formattedValue,
string errorText,
DataGridViewCellStyle cellStyle,
DataGridViewAdvancedBorderStyle advancedBorderStyle,
DataGridViewPaintParts paintParts
)
Protected Overrides Sub Paint (
graphics As Graphics,
clipBounds As Rectangle,
cellBounds As Rectangle,
rowIndex As Integer,
cellState As DataGridViewElementStates,
value As Object,
formattedValue As Object,
errorText As String,
cellStyle As DataGridViewCellStyle,
advancedBorderStyle As DataGridViewAdvancedBorderStyle,
paintParts As DataGridViewPaintParts
)
protected:
virtual void Paint(
Graphics^ graphics,
Rectangle clipBounds,
Rectangle cellBounds,
int rowIndex,
DataGridViewElementStates cellState,
Object^ value,
Object^ formattedValue,
String^ errorText,
DataGridViewCellStyle^ cellStyle,
DataGridViewAdvancedBorderStyle^ advancedBorderStyle,
DataGridViewPaintParts paintParts
) override
abstract Paint :
graphics : Graphics *
clipBounds : Rectangle *
cellBounds : Rectangle *
rowIndex : int *
cellState : DataGridViewElementStates *
value : Object *
formattedValue : Object *
errorText : string *
cellStyle : DataGridViewCellStyle *
advancedBorderStyle : DataGridViewAdvancedBorderStyle *
paintParts : DataGridViewPaintParts -> unit
override Paint :
graphics : Graphics *
clipBounds : Rectangle *
cellBounds : Rectangle *
rowIndex : int *
cellState : DataGridViewElementStates *
value : Object *
formattedValue : Object *
errorText : string *
cellStyle : DataGridViewCellStyle *
advancedBorderStyle : DataGridViewAdvancedBorderStyle *
paintParts : DataGridViewPaintParts -> unit
Parameters
- graphics Graphics
- The graphics object
- clipBounds Rectangle
- The clip bounds
- cellBounds Rectangle
- The cell bounds
- rowIndex Int32
- The row index of the cell
- cellState DataGridViewElementStates
- The cell state
- value Object
- The value of the cell
- formattedValue Object
- The formatted value for the cell
- errorText String
- The error text associated with the cell, if any
- cellStyle DataGridViewCellStyle
- The cell style
- advancedBorderStyle DataGridViewAdvancedBorderStyle
- The advanced border style
- paintParts DataGridViewPaintParts
- The parts of the cell to paint