MindFusion WinForms Programmer's Guide
BarChart.HitTestBar Method
See Also
 





Returns the bar at the specified position.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public Bar HitTestBar (
    int x,
    int y
)

Visual Basic  Copy Code

Public Function HitTestBar( _
    x As Integer, _
    y As Integer _
) As Bar

 Parameters

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

 Return Value

The Bar that includes the point specified by x and y; null if no Bar is found.

 Remarks

Use this method when hit - testing to find the Bar, at which the user clicks. The result can be null, so always check.

 See Also

HitTest
BarChart Members
BarChart Class
MindFusion.Charting Namespace