Returns the Line at the position specified by x and y.
Namespace: MindFusion.Charting
Assembly: MindFusion.Charting
C#
![]() |
---|
public Line HitTestLine ( |
Visual Basic
![]() |
---|
Public Function HitTestLine( _ |
The Line at the position specified by x and y; null if no Line is found.
Use the method when hit-testing all types of line and/or area charts. If the chart is combined with scatter, the method will not return the scatter, when hit. Instead you should use HitTestScatter or HitTest and cast the result.
HitTestLine returns the line that holds all points for a particular data series. You can recognize it through the Index or MaxNum properties. The result can be null, so always check.