Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / HitTestResult Class
Members Example


In This Topic
    HitTestResult Class
    In This Topic
    Contains information about the chart element at given window coordinates.
    Object Model
    HitTestResult Class
    Syntax
    'Declaration
     
    Public Class HitTestResult 
    'Usage
     
    Dim instance As HitTestResult
    public class HitTestResult 
    Remarks
    You obtain an instance of this class by calling the HitTest function of the control
    Example
    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");
    }
    Inheritance Hierarchy

    System.Object
       Xceed.Chart.Core.HitTestResult

    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