Table of Contents

TTMSFNCCustomDataGrid.XYToColumn Method

Returns the zero-based column index of the column under the given pixel coordinate.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Syntax

function XYToColumn(X, Y: Double): Integer;

Parameters

Name Description
X Horizontal pixel offset relative to the control.
Y Vertical pixel offset relative to the control.

Returns

Zero-based column index, or -1 if outside grid columns.