Dundas Chart for ASP.NET
HitTestResult Class
Members  See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace : HitTestResult Class


Represents the results of a hit test.
This class is used as a result of hit test function

Object Model




Syntax

Visual Basic (Declaration)  
Public Class HitTestResult 
Visual Basic (Usage) Copy Code
Dim instance As HitTestResult
C#  
public class HitTestResult 

Remarks

This class represents the results of a hit test, and is exposed as the return object from a HitTest method call.

A hit test checks a specified point to see if a chart element is located at that point. If a chart element is detected then this HitTestResult class is used to get information about that chart element.

If a chart element is found the Object property will return a reference to the chart element, except for DataPoint objects (in which case it will be null).

If a data point is located the PointIndex property is used to get the data point's index (the zero-based index of the point in the Points collection), and the Series property is used to get the associated Series object of that data point.

The ChartArea and Axis properties are used to get the associated chart area and axis of the chart element returned by the hit test (if any). Note that these properties may be null if the returned chart object does not have an associated chart area or axis.

Use the ChartElementType property to determine the type of the chart element returned by a hit test.

For further information see the Selection of Chart Elements and Drilldown topic.

Inheritance Hierarchy

System.Object
   Dundas.Charting.WebControl.HitTestResult

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.