RatingCellGetContentBounds(Graphics, DataGridViewCellStyle, Int32) Method

Returns the bounding rectangle that encloses the cell's content area, which is calculated using the specified graphics context and cell style.

Definition

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

Parameters

graphics  Graphics
The graphics context
cellStyle  DataGridViewCellStyle
The cell style to apply to the cell
rowIndex  Int32
The index of the cell's parent row

Return Value

Rectangle
The Rectangle that bounds the cell's contents

Remarks

For null cells, a default rectangle is returned so that mouse clicks near its center will initiate editing.

See Also