GetClosestAnchor()
<< Click to Display Table of Contents >> GetClosestAnchor() |
Returns the closest chart anchor within a specified maximum distance from the mouse cursor.
This method returns an existing ChartAnchor
GetClosestAnchor(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, double maxDist, Point point)
chartControl |
A ChartControl representing the x-axis |
chartPanel |
A ChartPanel representing the the panel for the chart |
chartScale |
A ChartScale representing the y-axis |
maxDist |
A double value representing the cursor's sensitivity used to detect the nearest anchor |
point |
A Point in device pixels representing the current mouse cursor position |
public override Cursor GetCursor(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, Point point) |