DevExpress ChartControl 右键菜单 Right Click Menu CalcHitInfo

private void form_MouseUp(object sender, MouseEventArgs e) {
        if (e.Button == MouseButtons.Right) {
            if (GetSeriesPointByClick(e.Location) != null) {
                popupMenu1.ShowPopup(new Point(MousePosition.X, MousePosition.Y));
            }
        }
}

Point currentPoint = new Point();
private void form_MouseDown(object sender, MouseEventArgs e) {
      if (e.Button == MouseButtons.Right) {
           currentPoint = MousePosition;   //暂存 MousePosition
                                           //Console.WriteLine( $"右键 X:{currentPoint.X}, Y:{currentPoint.Y}" );
      }
}
原文地址:https://www.cnblogs.com/grj001/p/12224576.html