Skip to main content
Table of Contents

TTMSFNCDataGrid.XYToColumn Method

Returns the column of the cell under a point.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
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.