Table of Contents

TTMSFNCCandleStickChart.XYToSerieLegendItem Method

Returns the index of the series legend item under the given screen coordinates, and sets ASerie to the owning series; returns -1 if none.

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

Syntax

function XYToSerieLegendItem(X, Y: Double; var ASerie: TTMSFNCChartSerie): Integer;

Parameters

Name Description
X Horizontal screen coordinate.
Y Vertical screen coordinate.
ASerie Receives the series whose legend was hit, or nil if none.

Returns

Returned value.