Contains information about the chart element at given window coordinates.
The following example obtains a HitTestResult object for the object lying on window coordinates 100, 100.
Dim hitTestResult As HitTestResult = ChartControl.HitTest(100,100)
If hitTestResult.ChartElement = ChartElement.ControlBackground Then
MessageBox.Show("You clicked on the background")
End If
HitTestResult hitTestResult = ChartControl.HitTest(100, 100);
if (hitTestResult.ChartElement == ChartElement.ControlBackground)
{
MessageBox.Show("You clicked on the background");
}
System.Object
Xceed.Chart.Core.HitTestResult
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2