BaseComboBoxCellGetPreferredSize Method
Calculates the preferred size, in pixels, of the cell
Namespace: EWSoftware.ListControls.DataGridViewControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected override Size GetPreferredSize(
Graphics graphics,
DataGridViewCellStyle cellStyle,
int rowIndex,
Size constraintSize
)
Protected Overrides Function GetPreferredSize (
graphics As Graphics,
cellStyle As DataGridViewCellStyle,
rowIndex As Integer,
constraintSize As Size
) As Size
protected:
virtual Size GetPreferredSize(
Graphics^ graphics,
DataGridViewCellStyle^ cellStyle,
int rowIndex,
Size constraintSize
) override
abstract GetPreferredSize :
graphics : Graphics *
cellStyle : DataGridViewCellStyle *
rowIndex : int *
constraintSize : Size -> Size
override GetPreferredSize :
graphics : Graphics *
cellStyle : DataGridViewCellStyle *
rowIndex : int *
constraintSize : Size -> Size
- graphics Graphics
- The graphics context for the cell
- cellStyle DataGridViewCellStyle
- The cell style
- rowIndex Int32
- The index of the cell's parent row
- constraintSize Size
- The cell's maximum allowable size
SizeThe preferred cell size in pixels