TdxChartHitTest Class
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.
Chart HitTest information updates every time when:
- The OnHotTrackElement or OnMouseMove event occurs. The inspected point matches the current mouse pointer position.
- You call the CalculateHitTest procedure. The procedure’s
X
andY
parameters define inspected point coordinates within the Chart control client area.
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