Skip to main content
All docs
V25.1
  • 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.

    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