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

TdxChartHitTest Class

Stores Chart control HitTest information.

Declaration

TdxChartHitTest = class(
    TObject
)

Remarks

HitTest information allows you to identify and access the inspected visual element (that is, a visual element at the current mouse pointer position or at the coordinates passed to the CalculateHitTest procedure) within the Chart control client area.

VCL Chart Control: Inspected Point Coordinates and Visual Chart Elements

Chart HitTest information updates every time when:

Main API Members

The list below outlines key class members that allow you to identify visual elements.

  • Obtain the inspected point‘s coordinates within the Chart control’s client area (Point).
  • Identify the type of the visual element to which the inspected point belongs (HitCode).
  • Access inspected series and their visual elements (Series, SeriesPoint, and SeriesValueLabel).
  • Access inspected axis, chart, label, series, and legend titles (Title).
  • Access inspected legend panes and items (Legend and LegendItem).
  • Access inspected axes and their value labels (Axis and AxisValueLabel).
  • Access inspected total labels of simple series (TotalLabel).
  • Access inspected diagrams (Diagram).

Direct TdxChartHitTest Class References

The following public API members reference a TdxChartHitTest object:

TdxCustomChartControl.HitTest
Provides access to HitTest information on the inspected point within the Chart control client area.
TdxChartHotTrackElementEventArgs.HitTest
Provides access to HitTest information on the currently hot-tracked visual Chart element.
TdxChartHotTrackElementEventArgs.PreviousHitTest
Provides access to HitTest information on the visual Chart element that was hot-tracked before the current OnHotTrackElement event occurrence.

Inheritance

TObject
TdxChartHitTest
See Also