MouseDownPoint

View as Markdown

Definition

Indicates the WPF x- and y-coordinates of the mouse cursor at the most recent OnMouseDown() event.

Property Value

A Point object containing x- and y-coordinates of the mouse cursor when the left mouse button is clicked or held.

Syntax

\<chartcontrol\>.MouseDownPoint

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 Point cursorPoint = chartControl.MouseDownPoint;
4
5 // Print the x- and y-coordinates of the mouse cursor when clicked
6 Print(String.Format("Mouse clicked at coordinates {0},{1}", cursorPoint.X, cursorPoint.Y));
7}