Table of Contents

TTMSFNCDataGridRenderer.XYToColumn Method

Returns the column index at the given device pixel X coordinate, or -1 if outside any column.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

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

Parameters

Name Description
X Horizontal device pixel position.
Y Vertical device pixel position used for nested/fixed area hit-testing.

Returns

The zero-based column index, or -1 when outside any column.