TTMSFNCDataGridRenderer.XYToCell Method
Returns the cell coordinate at the given device pixel position. Pass
ASizing= True to adjust the hit-test for sizing cursor detection.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Syntax
function XYToCell(X, Y: Double; ASizing: Boolean = False): TTMSFNCDataGridCellCoord;
Parameters
| Name | Description |
|---|---|
X |
Horizontal device pixel position. |
Y |
Vertical device pixel position. |
ASizing |
When True, hit-tests sizing bands as well as cell bounds. |
Returns
The cell coordinate at the specified position, or an invalid coordinate when outside the grid.