Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Name Type Description
X Integer

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