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.
Namespace: EWSoftware.ListControls.DataGridViewControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected override Rectangle GetContentBounds(
Graphics graphics,
DataGridViewCellStyle cellStyle,
int rowIndex
)
Protected Overrides Function GetContentBounds (
graphics As Graphics,
cellStyle As DataGridViewCellStyle,
rowIndex As Integer
) As Rectangle
protected:
virtual Rectangle GetContentBounds(
Graphics^ graphics,
DataGridViewCellStyle^ cellStyle,
int rowIndex
) override
abstract GetContentBounds :
graphics : Graphics *
cellStyle : DataGridViewCellStyle *
rowIndex : int -> Rectangle
override GetContentBounds :
graphics : Graphics *
cellStyle : DataGridViewCellStyle *
rowIndex : int -> Rectangle
- 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
RectangleThe
Rectangle that bounds the cell's contents
For null cells, a default rectangle is returned so that mouse clicks near its center will
initiate editing.