Nevron .NET Vision
Nevron.Chart Namespace / NHitTestResult Class
Members Example

In This Topic
    NHitTestResult Class
    In This Topic
    Contains information about the chart element at given window coordinates.
    Object Model
    NHitTestResult Class
    Public Class NHitTestResult 
    Dim instance As NHitTestResult
    public class NHitTestResult 
    You obtain an instance of this class by calling the HitTest function of the control
    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



    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