Back to Devexpress

TdxCustomChartControl.CalculateHitTest(Integer,Integer) Method

vcl-dxchartcontrol-dot-tdxcustomchartcontrol-dot-calculatehittest-x28-system-dot-integer-system-dot-integer-x29.md

latest1.6 KB
Original Source

TdxCustomChartControl.CalculateHitTest(Integer,Integer) Method

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

Declaration

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

Parameters

NameTypeDescription
XInteger

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

The HitTest.Point.X property value changes to this parameter value after the procedure call.

| | Y | Integer |

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

The HitTest.Point.Y property value changes to this parameter value after the procedure call.

|

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

TdxCustomChartControl Class

TdxCustomChartControl Members

dxChartControl Unit