MindFusion WinForms Programmer's Guide
LineChart.HitTestLine Method
See Also
 





Returns the Line at the position specified by x and y.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public Line HitTestLine (
    int x,
    int y
)

Visual Basic  Copy Code

Public Function HitTestLine( _
    x As Integer, _
    y As Integer _
) As Line

 Parameters

x
The X - coordinate of the mouse.
y
The Y - coordinate of the mouse.

 Return Value

The Line at the position specified by x and y; null if no Line is found.

 Remarks

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.

 See Also

HitTest
LineChart Members
LineChart Class
MindFusion.Charting Namespace