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





Returns the Scatter at the specified position.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public Scatter HitTestScatter (
    int x,
    int y
)

Visual Basic  Copy Code

Public Function HitTestScatter( _
    x As Integer, _
    y As Integer _
) As Scatter

 Parameters

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

 Return Value

The Scatter at the position specified by x and y; null if no Scatter is clicked.

 Remarks

Use this method when hit-testing scatter charts. The method returns only the hit scatter. If the scatter chart is combined with any type of line or area chart, you should also use HitTestLine or HitTest and cast the result to Line or Scatter.

The result can be null, so always check.

 See Also

LineChart Members
LineChart Class
MindFusion.Charting Namespace