Skip to main content
A newer version of this page is available. .

TdxCustomChartControl.CalculateHitTest(Integer,Integer) Method

Calculates HitTest information for the specified pixel coordinates within the Chart control client area.

Declaration

procedure CalculateHitTest(X: Integer; Y: Integer);

Parameters

Name Type Description
X Integer

The horizontal pixel offset of the inspected point from the left border of the Chart control client area.

Y Integer

The vertical pixel offset of the inspected point from the top border of the Chart control client area.

Remarks

Call the CalculateHitTest procedure and pass pixel coordinates of a point within the Chart control client area as X and Y parameters to identify what visual element is located there. A CalculateHitTest procedure call updates HitTest information accessible through the HitTest property.

See Also