[]
Gets a Rectangle object with the coordinates of the cell within the control.
public Rectangle GetCellRect(int row, int col, bool show)
Public Function GetCellRect(row As Integer, col As Integer, show As Boolean) As Rectangle
| Type | Name | Description |
|---|---|---|
| int | row | Row index. |
| int | col | Column index. |
| bool | show | Whether to scroll the cell into view before calculating the rectangle. |
| Type | Description |
|---|---|
| Rectangle | A Rectangle object with the coordinates of the cell, in pixels and relative to the control's client area. |
This property is useful if you need to implement custom editors or other elements that need to be positioned over cells.
Gets a Rectangle object with the coordinates of the cell within the control.
public Rectangle GetCellRect(int row, int col)
Public Function GetCellRect(row As Integer, col As Integer) As Rectangle
| Type | Name | Description |
|---|---|---|
| int | row | Row index. |
| int | col | Column index. |
| Type | Description |
|---|---|
| Rectangle |
This property is useful if you need to implement custom editors or other elements that need to be positioned over cells.
This method does not ensure the cell is visible.