Base Combo Box CellGet Content Bounds(Graphics, Data Grid View Cell Style, Int 32) Method
This returns the bounding rectangle that encloses the cell's content area calculated by using the
specified graphics object and cell style.
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
A rectangle representing the cell content bounds
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
protected override Rectangle GetContentBounds(
Graphics graphics,
DataGridViewCellStyle cellStyle,
int rowIndex
)VB
Protected Overrides Function GetContentBounds (
graphics As Graphics,
cellStyle As DataGridViewCellStyle,
rowIndex As Integer
) As RectangleC++
protected:
virtual Rectangle GetContentBounds(
Graphics^ graphics,
DataGridViewCellStyle^ cellStyle,
int rowIndex
) overrideF#
abstract GetContentBounds :
graphics : Graphics *
cellStyle : DataGridViewCellStyle *
rowIndex : int -> Rectangle
override GetContentBounds :
graphics : Graphics *
cellStyle : DataGridViewCellStyle *
rowIndex : int -> Rectangle Parameters
- graphics Graphics
- The graphics context for the cell
- cellStyle DataGridViewCellStyle
- The cell style
- rowIndex Int32
- The index of the parent row
Return Value
RectangleA rectangle representing the cell content bounds