Nevron .NET Vision
NHitTestResult Class
Members  Example 

Contains information about the chart element at given window coordinates.
Object Model
NHitTestResult Class
Syntax
'Declaration
 
<System.Runtime.InteropServices.ClassInterfaceAttribute(ClassInterfaceType.AutoDual)>
Public Class NHitTestResult 
[System.Runtime.InteropServices.ClassInterface(ClassInterfaceType.AutoDual)]
public class NHitTestResult 
Remarks
You obtain an instance of this class by calling the HitTest function of the control
Example
The following example obtains a NHitTestResult object for the object lying on window coordinates 100, 100.
Dim hitTestResult As NHitTestResult =  ChartControl.HitTest(100,100) 
If hitTestResult.ChartElement = ChartElement.ControlBackground Then
   MessageBox.Show("You clicked on the background")
End If
NHitTestResult hitTestResult = ChartControl.HitTest(100, 100);
if (hitTestResult.ChartElement == ChartElement.ControlBackground)
{
	MessageBox.Show("You clicked on the background");
}
Inheritance Hierarchy

System.Object
   Nevron.Chart.NHitTestResult

Requirements

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

See Also

Reference

NHitTestResult Members
Nevron.Chart Namespace

 

 


©2021. Nevron Software LLC.

Send Feedback