BaseComboBoxCellGetPreferredSize Method

Calculates the preferred size, in pixels, of the cell

Definition

Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected override Size GetPreferredSize(
	Graphics graphics,
	DataGridViewCellStyle cellStyle,
	int rowIndex,
	Size constraintSize
)

Parameters

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

Return Value

Size
The preferred cell size in pixels

See Also