Specifies whether or not hit-testing is enabled for a Chart control.
true, if a chart provides hit information at runtime; otherwise, false.
By default, the RuntimeHitTesting property is set to false, which means that hit-testing is disabled at runtime. This is done to accelerate chart rendering.
If you want to get information on clicks within the chart using the ChartControl.CalcHitInfo method, set the RuntimeHitTesting option to true.
- If you handle the ChartControl.ObjectHotTracked event, it will be raised and information on hit-testing will be collected regardless of the current RuntimeHitTesting property value.
- When the RuntimeHitTesting property is enabled, the SeriesPoint object can be inaccessible when hovering over the LineSeriesView at runtime. To resolve this issue, make sure the line point markers are visible (set the LineSeriesView.MarkerVisibility property to true).
- If you need to enable the RuntimeHitTesting property at runtime, turn it on during a chart's initialization. You can do this in the Form's constructor after the components' initialization or in the Form's Load event handler.