Skip to main content
Table of Contents

TTMSFNCStackedPercentageBarChart.XYToClosestDrawPoint Method

Returns True and fills ADrawPoint when the closest rendered point to the screen coordinates is within the click margin.

API unit family: TMSFNCChart Declaring type: TTMSFNCStackedPercentageBarChart Inherited from: TTMSFNCChart

Syntax

FMX.TMSFNCChart.hppPascalC++
function XYToClosestDrawPoint(X, Y: Double; var ADrawPoint: TTMSFNCChartDrawPoint): Boolean;
bool __fastcall XYToClosestDrawPoint(double X, double Y, TTMSFNCChartDrawPoint &ADrawPoint);

Parameters

Name Description
X Horizontal screen coordinate.
Y Vertical screen coordinate.
ADrawPoint Receives the draw data for the closest detected point.

Returns

Returned value.