TTMSFNCCustomDataGrid.XYToColumn Method
Returns the column of the cell under a point.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
function XYToColumn(X, Y: Double): Integer;
int __fastcall XYToColumn(double X, double Y);
Parameters
| Name | Description |
|---|---|
X |
Horizontal position relative to the control. |
Y |
Vertical position relative to the control; needed because the hit test is cell based. |
Returns
The column of XYToCell, or -1 when the point is not over a cell.