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

    Protected Fields
     NameDescription
    Protected FieldThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected FieldThis member is reserved for internal use and is not intended to be used directly from your code.  
    Top
    Public Properties
     NameDescription
    Public PropertyReturns a reference to a Axis object.  
    Public PropertyReturns the index of the Axis object in the Chart axes collection.  
    Public PropertyReturns a reference to a AxisStripe object.  
    Public PropertyReturns the index of the AxisStripe object in the Axis stripes collection.  
    Public PropertyReturns a reference to a Background object.  
    Public PropertyReturns a reference to the Chart object containing the located object.  
    Public PropertyThe chart element type at the given window coordinates.  
    Public PropertyReturns the index of the Chart object containing the located object.  
    Public PropertyReturns a reference to a ChartWall object.  
    Public PropertyReturns the index of the ChartWall object in the Chart walls collection.  
    Public PropertyReturns the index of the data point in the Series values collection.  
    Public PropertyReturns a reference to a ChartLabel object.  
    Public PropertyReturns the index of the ChartLabel object in the control labels collection.  
    Public PropertyReturns a reference to a Legend object.  
    Public PropertyReturns a reference to a LegendDataItem object.  
    Public PropertyReturns the index of the LegendDataItem object in the Legend data collection.  
    Public PropertyReturns the index of the Legend object in the control legends collection.  
    Public PropertyReturns a reference to a chart object at the given window coordinates.  
    Public PropertyReturns a reference to the SeriesBase object containing the located data item.  
    Public PropertyReturns the index of the SeriesBase object in the Chart series collection.  
    Public PropertyReturns the index of the data point in the SurfaceSeriesBase values collection.  
    Public PropertyReturns the index of the data point in the SurfaceSeries values collection.  
    Public PropertyReturns a reference to a Watermark object.  
    Public PropertyReturns the index of the Watermark object in the control watermarks collection.  
    Top
    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