Dundas Chart for ASP.NET
HitTest Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > Chart Class : HitTest Method


Call this method to determine the chart element, if any, that is located at a point defined by the given X and Y coordinates.

Overload List

Overload Description
HitTest(Int32,Int32)

Call this method to determine the chart element, if any, that is located at a point defined by given X and Y coordinates.


This method is used for selection and it returns a selected object from x and y coordinates.  
HitTest(Int32,Int32,Boolean)

Call this method to determine the chart element, if any, that is located at a point defined by given X and Y coordinates. Transparent elements can optionally be ignored.


This method is used for selection and it returns a selected object from x and y coordinates.  
HitTest(Int32,Int32,ChartElementType)

Call this method to determine if a chart element of a given type is located at a point defined by given X and Y coordinates.


This method is used for selection and it returns a selected object from x and y coordinates.  

Remarks

Call this method to determine the chart element (if any) that is located at a specified point.

Often this method is used in some mouse-related event (e.g. MouseDown) to determine what chart element the end-user clicked on. The X and Y mouse coordinates obtained from the event parameters are then used for the X and Y parameter values of this method call.

The returned HitTestResult object's properties can then be used to determine what chart element was clicked on, and also provides an instance of the actual object selected (if any).

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.