BaseComboBoxCellGetPreferredSize Method

Calculates the preferred size, in pixels, of the cell

Definition

Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.18.0+3a863295c73252b22e8ab6862ed6bdc57bcbd0fc
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